Hello everyone, I have been working at this for over a month and can’t make it work. As you can see it’s a simple configuration no ivr just trying to hit a2billing which works fine with the following setup and it just does not happens for me. I know I’m missing something but can’t even hit the box. I get “your call can not be completed as dialed” I get registration and peer registration. So I decided to post the configuration here with the full log and see if someone can tell me what I’m missing.
Thankyou.
This is my sip.conf file
[general]
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes
nat=yes
qualify=yes
canreinvite=no ; allow RTP voice traffic to bypass Asterisk
dtmfmode=rfc2833
externip=asteriskserver ;(Your WAN IP)
localnet=localgateway/255.255.255.0
register => username:password@lesnet_peer
;*********************************Lesnet *********************
[lesnet_peer]
type=peer
host=did.voip.les.net
dtmfmode=rfc2833
insecure=very
disallow=all
allow=ulaw
context=a2billing
;*********************************End Lesnet ******************
This is my extensions.conf
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[a2billing]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup
this is my full log file
Dec 12 11:35:34 VERBOSE[3774] logger.c: – Reloading module ‘cdr_manager.so’ (Asterisk Call Manager CDR Backend)
Dec 12 11:35:34 VERBOSE[3774] logger.c: == Parsing ‘/etc/asterisk/cdr_manager.conf’: Dec 12 11:35:34 VERBOSE[3774]
logger.c: == Parsing ‘/etc/asterisk/cdr_manager.conf’: Found
Dec 12 11:35:34 VERBOSE[3774] logger.c: – Reloading module ‘app_hasnewvoicemail.so’ (Indicator for whether a
voice mailbox has messages in a given folder.)
Dec 12 11:35:34 VERBOSE[3774] logger.c: – Reloading module ‘codec_gsm.so’ (GSM/PCM16 (signed linear) Codec
Translator)
Dec 12 11:35:34 VERBOSE[3774] logger.c: == Parsing ‘/etc/asterisk/codecs.conf’: Dec 12 11:35:34 VERBOSE[3774]
logger.c: == Parsing ‘/etc/asterisk/codecs.conf’: Found
Dec 12 11:35:34 VERBOSE[3774] logger.c: – codec_gsm: using generic PLC
Dec 12 11:35:34 VERBOSE[3774] logger.c: – Reloading module ‘app_meetme.so’ (MeetMe conference bridge)
Dec 12 11:35:34 VERBOSE[3774] logger.c: == Parsing ‘/etc/asterisk/meetme.conf’: Dec 12 11:35:34 VERBOSE[3774]
logger.c: == Parsing ‘/etc/asterisk/meetme.conf’: Found
Dec 12 11:35:34 VERBOSE[3774] logger.c: – Reloading module ‘codec_g726.so’ (ITU G.726-32kbps G726 Transcoder)
Dec 12 11:35:34 VERBOSE[3774] logger.c: == Parsing ‘/etc/asterisk/codecs.conf’: Dec 12 11:35:34 VERBOSE[3774]
logger.c: == Parsing ‘/etc/asterisk/codecs.conf’: Found
Dec 12 11:35:34 VERBOSE[3774] logger.c: – codec_g726: using generic PLC
Dec 12 11:35:34 VERBOSE[2737] logger.c: == Parsing ‘/etc/asterisk/sip_notify.conf’: Dec 12 11:35:34 VERBOSE[2737]
logger.c: == Parsing ‘/etc/asterisk/sip_notify.conf’: Found
Dec 12 11:35:34 DEBUG[2737] acl.c: ##### Testing 64.34.176.212 with xx.xxx.xxx.x
Dec 12 11:35:34 DEBUG[2737] chan_sip.c: Target address 64.34.176.212 is not local, substituting externip
Dec 12 11:35:34 DEBUG[2737] chan_sip.c: Stopping retransmission on '3aae062835906e9d4734787f0a669598@xx.xxx.xxx.x’ of
Request 102: Match Found
Dec 12 11:35:35 DEBUG[2737] acl.c: ##### Testing 64.34.176.212 with xx.xxx.xxx.x
Dec 12 11:35:35 DEBUG[2737] chan_sip.c: Target address 64.34.176.212 is not local, substituting externip
Dec 12 11:35:35 DEBUG[2737] chan_sip.c: Scheduled a registration timeout for lesnet_peer id #502
Dec 12 11:35:35 DEBUG[2737] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on
‘5b67b0f7445389f61a9736c85967f514@127.0.0.1’ Request 102: Found
Dec 12 11:35:35 DEBUG[2737] chan_sip.c: Stopping retransmission on ‘5b67b0f7445389f61a9736c85967f514@127.0.0.1’ of
Request 102: Match Found
Dec 12 11:35:35 DEBUG[2737] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on
‘5b67b0f7445389f61a9736c85967f514@127.0.0.1’ Request 103: Found
Dec 12 11:35:35 DEBUG[2737] chan_sip.c: Stopping retransmission on ‘5b67b0f7445389f61a9736c85967f514@127.0.0.1’ of
Request 103: Match Found
Dec 12 11:35:35 DEBUG[2737] chan_sip.c: Registration successful
Dec 12 11:35:35 DEBUG[2737] chan_sip.c: Cancelling timeout 502
Dec 12 11:36:07 DEBUG[2737] chan_sip.c: Auto destroying call ‘5b67b0f7445389f61a9736c85967f514@127.0.0.1’
Dec 12 11:36:34 DEBUG[2737] acl.c: ##### Testing 64.34.176.212 with xx.xxx.xxx.x
Dec 12 11:36:34 DEBUG[2737] chan_sip.c: Target address 64.34.176.212 is not local, substituting externip
Dec 12 11:36:34 DEBUG[2737] chan_sip.c: Stopping retransmission on '4dbb72425fe1f6bb23bfb02544e29e0b@xx.xxx.xxx.x’ of
Request 102: Match Found
Dec 12 11:37:20 DEBUG[2737] acl.c: ##### Testing 64.34.176.212 with xx.xxx.xxx.x
Dec 12 11:37:20 DEBUG[2737] chan_sip.c: Target address 64.34.176.212 is not local, substituting externip
Dec 12 11:37:20 DEBUG[2737] chan_sip.c: Scheduled a registration timeout for lesnet_peer id #510
Dec 12 11:37:20 DEBUG[2737] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on
‘5b67b0f7445389f61a9736c85967f514@127.0.0.1’ Request 104: Found
Dec 12 11:37:20 DEBUG[2737] chan_sip.c: Stopping retransmission on ‘5b67b0f7445389f61a9736c85967f514@127.0.0.1’ of
Request 104: Match Found
Dec 12 11:37:20 DEBUG[2737] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on
‘5b67b0f7445389f61a9736c85967f514@127.0.0.1’ Request 105: Found
Dec 12 11:37:20 DEBUG[2737] chan_sip.c: Stopping retransmission on ‘5b67b0f7445389f61a9736c85967f514@127.0.0.1’ of
Request 105: Match Found
Dec 12 11:37:20 DEBUG[2737] chan_sip.c: Registration successful
Dec 12 11:37:20 DEBUG[2737] chan_sip.c: Cancelling timeout 510
Dec 12 11:37:34 DEBUG[2737] acl.c: ##### Testing 64.34.176.212 with xx.xxx.xxx.x
Dec 12 11:37:34 DEBUG[2737] chan_sip.c: Target address 64.34.176.212 is not local, substituting externip
Dec 12 11:37:34 DEBUG[2737] chan_sip.c: Stopping retransmission on '7737272b1b09b