Default Context Frustration
Added by shawn bure about 10 years ago
I keep getting this error - "[Mar 11 18:46:19] NOTICE3097: chan_sip.c:23534 handle_request_invite: Call from '8001' (192.168.1.127:11305) to extension '4805551212' rejected because extension not found in context 'default'."
Notes:
I have posted the same issue a few months back, but I can't find the entry.
4805551212 is a replacement for my actual working cell number.
I have a physical phone (8001), and a soft phone (8002) configured. They both result in the same issue
Here is my carrier configuration (trunk is registered at sip provider):
Carrier ID: SipUS
Carrier Name: SipUS
Carrier Description: SipUS
Registration String: register => xxxxx:[email protected]:5060/
Account Entry:
[SipUS]
disallow=all
allow=gsm
allow=ulaw
type=friend
dtmfmode=rfc2833
context=trunkinbound
qualify=yes
insecure=very
nat=yes
host=dialer.sip.us
username=xxxxxx
secret=xxxxxx
Protocol: SIP
Globals String: TRUNK1=SIP/SipUS
Dialplan Entry:
exten =>_91NXXNXXXXXX,1,AGI
exten =>_91NXXNXXXXXX,2,Dial(${TRUNK1}/${EXTEN:1},,tTor)
exten =>_91NXXNXXXXXX,3,Hangup
So - I can dial each phone successfully, but I am trying to dial OUTBOUND manually to test the system. I don't have any other trunks created.
Has anyone solved this?
Replies (5)
RE: Default Context Frustration
-
Added by shawn bure about 10 years ago
I made a mistake before - copy and paste wrong...
Dialplan Entry:
exten =>_91NXXNXXXXXX,1,AGI
exten =>_91NXXNXXXXXX,2,Dial(${TRUNK1}/${EXTEN:1},,tTor)
exten =>_91NXXNXXXXXX,3,Hangup
RE: Default Context Frustration
-
Added by striker 247 about 10 years ago
the number you have dialled (4805551212) not matching your dialplan
as per your dialplan (dialpattern) you need to dial with 91 along with yourno (ie:914805551212)
if your sip provider doesnt need the country code then you need change the dialpaln as below
dialplan with 91 as prefix
exten =>_91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log) exten =>_91NXXNXXXXXX,2,Dial(${TRUNK1}/${EXTEN:2},,tTor) exten =>_91NXXNXXXXXX,3,Hangup
or
dialplan without any prfix to dial 10digit nos
exten =>_NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log) exten =>_NXXNXXXXXX,2,Dial(${TRUNK1}/${EXTEN},,tTor) exten =>_NXXNXXXXXX,3,Hangup
br
striker
www.striker24x7.blogspot.com
RE: Default Context Frustration
-
Added by shawn bure about 10 years ago
Same issue with dialing 4805551212, 94805551212 or 914805551212.
I really think the "lookup" is not working. What I mean is the error keeps saying "default context" - so is there a default dialplan that is being used, not the carrier one. Is there a default context that I can edit so the dialplan is proper when I am not doing a dialer campaign (manual dial)?
Kernel Version 2.6.18-371.11.1.el5 (SMP)
Distro Name GoAutoDial CE 3.3
RE: Default Context Frustration
-
Added by shawn bure about 10 years ago
Here is are a few excerpts that are in extensions.conf and extensions-vicidial.conf that would make me believe this should work:
extensions.conf
#include extensions-vicidial.conf
[trunkinbound]
; DID call routing process
; exten => _XXXXXXXXXX,1,AGI ; use this one instead of the one below if you are having delay issues, and match to number of received digits
exten => _X.,1,AGI
exten => _X.,n,Hangup()
; If you have DIDs that arrive with a plus sign at the beginning then uncomment
;exten => _+X.,1,AGI
;exten => _+X.,n,Hangup()
[default]
include => vicidial-auto
NO OTHER DIAL PATTERNS MATCH THE ONES I PUT IN THE CARRIER
extensions-vicidial.conf
TRUNK1=SIP/SipUS
[vicidial-auto-system-setting-custom]
exten => h,1,AGI
; System Setting Custom Dialplan
exten => _NXXNXXXXXX.,1,AGI
exten => _NXXNXXXXXX.,2,Dial(SIP/${EXTEN:10}@SipUS,,tTo)
exten => _NXXNXXXXXX.,3,Hangup
[vicidial-auto-external]
exten => h,1,AGI
; Local Server: 192.168.1.13
exten => _192*168*001*013*.,1,Goto(default,${EXTEN:16},1)
exten => _192*168*001*013*.,2,Hangup()
exten => _*192*168*001*013.,1,Goto(default,${EXTEN:18},1)
exten => _*192*168*001*013.,2,Hangup()
; VICIDIAL Carrier: SipUS - SipUS
; SipUS
exten =>_91NXXNXXXXXX.,1,AGI
exten =>_91NXXNXXXXXX.,2,Dial(${TRUNK1}@SipUS,,tTo)
exten =>_91NXXNXXXXXX.,3,Hangup
[vicidial-auto-internal]
exten => h,1,AGI
; Voicemail Extensions:
exten => _85026666666666.,1,Wait(1)
exten => _85026666666666.,n,Voicemail(${EXTEN:14},u)
exten => _85026666666666.,n,Hangup()
exten => _85026666666667.,1,Wait(1)
exten => _85026666666667.,n,Voicemail(${EXTEN:14},su)
exten => _85026666666667.,n,Hangup()
exten => 8500,1,VoicemailMain
exten => 8500,2,Goto(s,6)
exten => 8500,3,Hangup()
exten => 8501,1,VoicemailMain(s${CALLERID})
exten => 8501,2,Hangup()
; Prompt Extensions:
exten => 8167,1,Answer
exten => 8167,2,AGI
exten => 8167,3,Hangup()
exten => 8168,1,Answer
exten => 8168,2,AGI
exten => 8168,3,Hangup()
; this is used for recording conference calls, the client app sends the filename
; value as a callerID recordings go to /var/spool/asterisk/monitor (WAV)
; Recording is limited to 1 hour, to make longer, just change the server
; setting ViciDial Recording Limit
; this is the WAV verison, default
exten => 8309,1,Answer
exten => 8309,2,Monitor(wav,${CALLERID})
exten => 8309,3,Wait(3600)
exten => 8309,4,Hangup()
; this is the GSM verison
exten => 8310,1,Answer
exten => 8310,2,Monitor(gsm,${CALLERID})
exten => 8310,3,Wait(3600)
exten => 8310,4,Hangup()
; agent alert extension
exten => 83047777777777,1,Answer
exten => 83047777777777,2,Playback(${CALLERID})
exten => 83047777777777,3,Hangup()
; This is a loopback dial-around to allow for immediate answer of outbound calls
exten => _8305888888888888.,1,Answer
exten => _8305888888888888.,n,Wait(${EXTEN:16:1})
exten => _8305888888888888.,n,Dial(${TRUNKloop}/${EXTEN:17},,To)
exten => _8305888888888888.,n,Hangup()
; No-call silence extension
exten => _8305888888888888X999,1,Answer
exten => _8305888888888888X999,n,Wait(3600)
exten => _8305888888888888X999,n,Hangup()
[vicidial-auto-phones]
exten => h,1,AGI
; Phones direct dial extensions:
exten => 8001,1,Dial(SIP/8001,60,)
exten => 8001,2,Goto(default,850266666666668001,1)
exten => 8001,3,Hangup()
exten => 8002,1,Dial(SIP/8002,60,)
exten => 8002,2,Goto(default,850266666666668002,1)
exten => 8002,3,Hangup()
exten => 8003,1,Dial(SIP/8003,60,)
exten => 8003,2,Goto(default,850266666666668003,1)
exten => 8003,3,Hangup()
exten => 8004,1,Dial(SIP/8004,60,)
exten => 8004,2,Goto(default,850266666666668004,1)
exten => 8004,3,Hangup()
exten => 8005,1,Dial(SIP/8005,60,)
exten => 8005,2,Goto(default,850266666666668005,1)
exten => 8005,3,Hangup()
exten => 8006,1,Dial(SIP/8006,60,)
exten => 8006,2,Goto(default,850266666666668006,1)
exten => 8006,3,Hangup()
exten => 8007,1,Dial(SIP/8007,60,)
exten => 8007,2,Goto(default,850266666666668007,1)
exten => 8007,3,Hangup()
exten => 8008,1,Dial(SIP/8008,60,)
exten => 8008,2,Goto(default,850266666666668008,1)
exten => 8008,3,Hangup()
exten => 8009,1,Dial(SIP/8009,60,)
exten => 8009,2,Goto(default,850266666666668009,1)
exten => 8009,3,Hangup()
exten => 8010,1,Dial(SIP/8010,60,)
exten => 8010,2,Goto(default,850266666666668010,1)
exten => 8010,3,Hangup()
exten => 8011,1,Dial(SIP/8011,60,)
exten => 8011,2,Goto(default,850266666666668011,1)
exten => 8011,3,Hangup()
exten => 8012,1,Dial(SIP/8012,60,)
exten => 8012,2,Goto(default,850266666666668012,1)
exten => 8012,3,Hangup()
exten => 8013,1,Dial(SIP/8013,60,)
exten => 8013,2,Goto(default,850266666666668013,1)
exten => 8013,3,Hangup()
exten => 8014,1,Dial(SIP/8014,60,)
exten => 8014,2,Goto(default,850266666666668014,1)
exten => 8014,3,Hangup()
exten => 8015,1,Dial(SIP/8015,60,)
exten => 8015,2,Goto(default,850266666666668015,1)
exten => 8015,3,Hangup()
exten => 8016,1,Dial(SIP/8016,60,)
exten => 8016,2,Goto(default,850266666666668016,1)
exten => 8016,3,Hangup()
exten => 8017,1,Dial(SIP/8017,60,)
exten => 8017,2,Goto(default,850266666666668017,1)
exten => 8017,3,Hangup()
exten => 8018,1,Dial(SIP/8018,60,)
exten => 8018,2,Goto(default,850266666666668018,1)
exten => 8018,3,Hangup()
exten => 8019,1,Dial(SIP/8019,60,)
exten => 8019,2,Goto(default,850266666666668019,1)
exten => 8019,3,Hangup()
exten => 8020,1,Dial(SIP/8020,60,)
exten => 8020,2,Goto(default,850266666666668020,1)
exten => 8020,3,Hangup()
[vicidial-auto]
exten => h,1,AGI
include => vicidial-auto-internal
include => vicidial-auto-phones
include => vicidial-auto-external
include => vicidial-auto-system-setting-custom
This seems like it should work...
RE: Default Context Frustration
-
Added by striker 247 about 10 years ago
but your dialplan is not mathcing the one i posted earlier
exten =>_91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log) exten =>_91NXXNXXXXXX,2,Dial(${TRUNK1}/${EXTEN:2},,tTor) exten =>_91NXXNXXXXXX,3,Hangup or dialplan without any prfix to dial 10digit nos exten =>_NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log) exten =>_NXXNXXXXXX,2,Dial(${TRUNK1}/${EXTEN},,tTor) exten =>_NXXNXXXXXX,3,Hangup
your current dialplan
exten => _NXXNXXXXXX.,1,AGI
exten => _NXXNXXXXXX.,2,Dial(SIP/${EXTEN:10}@SipUS,,tTo)
exten => _NXXNXXXXXX.,3,Hangup
change the dialplan and make sure it update in the conf files.
br
striker
www.striker24x7.blogspot.com