Skip to main content

How to configure JIO PJSIP trunk in asterisk vicidial freepbx

 

JIO pjsip Carrier details:

DID numbers

Pilot number
SIP gateway IP & Media IP
Jio Network subnet range (server IP,subnet, gateway IP)

Asterisk - Vicidial PJSIP Settings for JIO

    If you are using Plain asterisk or configuring the trunks in command line, then add the below PJSIP settings in pjsip.conf which is located in the /etc/asterisk/ folder.

    If you are using vicidial then add all the pjsip settings mentioned here under the same carrier Account settings.

Note:  you no need to add any registration string for the pjsip trunks.

            Replace IP address my IP=100.64.24.4

[jiosiptrunk]
type=aor
qualify_frequency=60
contact=sip:jiosiptrunk@100.64.24.4:5060
[jiosiptrunk]
type=endpoint
transport=0.0.0.0-udp
context=from-trunk
disallow=all
allow=ulaw,alaw,gsm,g726,g722
aors=jiosiptrunk
send_connected_line=false
language=en
t38_udptl=no
t38_udptl_ec=none
fax_detect=no
trust_id_inbound=no
t38_udptl_nat=no
direct_media=no
rtp_symmetric=yes
dtmf_mode=rfc4733
[jiosiptrunk]
type=identify
endpoint=jiosiptrunk
match=100.64.24.4

Asterisk PJSIP Dialplan

    Use the below dialplan to dial over the jio trunk with PJSIP dialplan application.

If you are using the Asterisk and manging over command line, then add this dialplan in extensions.conf under your preferred outbound context,  

For vicidial users add this dialplan in same carriers settings under Dialplan Entry

dial plan for Vicidial Users

exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log) 
exten => _9X.,n,Dial(PJSIP/${EXTEN:1}@jiosiptrunk,30,Tto) 
exten => _9X.,n,Hangup()

dialpal for plain asterisk users

exten => _9X.,1,Dial(PJSIP/${EXTEN:1}@jiosiptrunk,30,Tto) 
exten => _9X.,n,Hangup()

Conclusion:

    Hope this article is helpful for you, if you like this post kindly share and follow.

Still you are facing issue or need a professional support reach out to be me on skype or telegram - id: manish.kadiya

 

 

 

 

 

 

 

Comments

Popular posts from this blog

Vicidial Scratch installation Alma -9

Step 1 – Download the dependencies   hostnamectl set-hostname xxxxxx.xxxxx.xxx ### Use YOUR SubDomain vi /etc/hosts ##Change domain name for actual server ip (xxx.xxx.xxx.xxx   complete domain name    subdomain only) timedatectl set-timezone Asia/Kolkata yum check-update yum update -y yum -y install epel-release yum update -y yum install git -y yum install -y kernel* sudo dnf install kernel-devel-$(uname -r) -y #Disable SELINUX sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config     reboot Step 2 – Run the Script cd /usr/src/ git clone https://github.com/manish23k/vicidial-install-scripts cd vicidial-install-scripts chmod +x alma-rocky9-ast16.sh ./alma-rocky9-ast16.sh Or the Asterisk 18 version: chmod +x alma-rocky9-ast18.sh ./alma-rocky9-ast18.sh ####For PHP 8 use this script. chmod +x main-installer-php8.sh ./main-installer-php8.sh

How to delete old call logs and other logs in vicidial or goautodial.

Step 1 : SSH to the server using the Putty Step 2:   login to mysql by typing   mysql -p                    (if you dont know password try below command )               mysql -ucron -p1234 Step 3 : select the asterisk database by typing               use asterisk step 4: Run the below command to check total disk occupied by asterisk database                SELECT table_schema AS "asterisk", ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema; Step 5 : Run the below command to check disk space consumed by each table in asterisk database SELECT table_name AS "Table", ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size (MB)" FROM information_schema.TABLES WHERE table_schema = "asterisk" ORDER BY (data_length + inde...

Install the No-IP client (Dynamic Update Client) on AlmaLinux 9

 Install the No-IP client (Dynamic Update Client) on AlmaLinux 9 1. Install Required Packages First, install the necessary packages to compile the client from source. sudo dnf install gcc make wget tar 2. Download the No-IP DUC (Dynamic Update Client) Download the latest version of the No-IP DUC. cd /opt wget https://www.noip.com/client/linux/noip-duc-linux.tar.gz 3. Extract the Downloaded File Extract the downloaded tarball. tar -zxvf noip-duc-linux.tar.gz cd noip-2.1.9-1/ 4. Compile the Client Run the following commands to compile the client. sudo make install 5. Configure the No-IP Client After installation, you’ll be prompted to enter your No-IP account credentials (email and password) and choose the hostname(s) to update. If not, you can manually run the configuration: sudo /usr/local/bin/noip2 -C 6. Start the No-IP Client To start the client: sudo /usr/local/bin/noip2 7. Verify Installation To confirm that the No-IP DUC is running, use: sudo /usr/local/bin/noip2 -S 8. Set Up...