Saturday, January 20, 2018

Carrier Add VICIdial

How to add carrier in vicidial?


Should be same as show in the image.

  • Keep in mind the Account Entry name and the entry in string must be same
  • Dialer prefix and the exclude with the EXTEN
e.g if the dialer prefix is one digit, then EXTEN is 1, if its two digit then EXTEN:2)

Account Entry:-

[UNIQUE_NAME]
disallow=all
allow=ulaw
dtmf=rfc2833
type=peer
qualify=no
canreinvite=no
nat=comedia
host=X.X.X.X

Dialplan Entry:-

exten => _22XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _22XX.,n,Dial(SIP/UNIQUE_NAME/44#${EXTEN:2},,tToR)
exten => _22XX.,n,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})

To Check the public IP address on the server ??

vicibox7:~ # curl -s checkip.dyndns.org | sed -e 's/<.Current IP Address: //' -e 's/<.$//'

Result show as :-

<html><head><title>Current IP Check</title></head><body>Current IP Address: X.X.X.X</body></html>

To check the Dialer Logs
vicibox7:~ # asterisk -rv
To remove the extra output :-
vicibox7*CLI> core set verbose 0
To check the Specific Carrier Log :-
vicibox7:~ #  sip set debug peer globext

0 comments: