Inbound SIP Provide Call route to SIP Trunk

Hi All,

I’m facing some problem on SIP Provider inbound Call.

I’m using Freepbx 2.0.11.37 GUI created a SIP Trunk for SIP Provider and other SIP Trunk for CUCM, I can call from CUCM to SIP Provider, but I can’t call into SIP Provider Trunk.

I got the below error:

[2014-05-04 03:05:21] NOTICE[3296] chan_sip.c: Call from ‘XXXXXXXX’ (203.176.254.198:5060) to extension ‘XXXXXXXX’ rejected because extension not found in context ‘from-nwt’.

*XXXXXXXX = SIP Provider DID Number

I haven’t edit with the extension, I created a Inbound Route to SIP Trunk only.

May I know how can I fix my issue?

Many Thanks!

hang

FreePBX 2.0 ? Really? That’s incredibly old. We are on 2.11

Anyway, “from-nwt” what context is that? Trunk context is from-trunk?

Should be 2.11.37. Typo

Below is the PEER Detail of the SIP Provider Trunk,the trunk name is the same with context.
username=XXXXXXXX
type=peer
secret=password
qualify=yes
port=5060
insecure=port,invite
host=ngn2.nwtbb.com
fromusername=XXXXXXXX
fromuser=XXXXXXXX
fromdomain=home1.com
dtmfmode=rfc2833
canreinvite=no
defaultexpirey=300
context=from-nwt

Please help to check what wrong with my configuration.

Many Thanks!

Again, the context should be from-trunk

Thanks for your information, I modified the context to from-trunk. I got the other error as below:

[2014-05-27 15:47:24] VERBOSE[5029][C-00000017] pbx.c: – Executing [[email protected]:1] Set(“SIP/CUCM-00000014”, “GROUP()=OUT_3”) in new stack
[2014-05-27 15:47:24] VERBOSE[5029][C-00000017] pbx.c: – Executing [[email protected]:2] Goto(“SIP/CUCM-00000014”, “from-trunk,9XXXXXXXX,1”) in new stack
[2014-05-27 15:47:24] VERBOSE[5029][C-00000017] pbx.c: – Goto (from-trunk,9XXXXXXXX,1)
[2014-05-27 15:47:24] VERBOSE[5029][C-00000017] pbx.c: – Executing [[email protected]:1] Set(“SIP/CUCM-00000014”, “__FROM_DID=9XXXXXXXX”) in new stack
[2014-05-27 15:47:24] VERBOSE[5029][C-00000017] pbx.c: – Executing [[email protected]:2] NoOp(“SIP/CUCM-00000014”, “Received an unknown call with DID set to 9XXXXXXXX”) in new stack
[2014-05-27 15:47:24] VERBOSE[5029][C-00000017] pbx.c: – Executing [[email protected]:3] Goto(“SIP/CUCM-00000014”, “s,a2”) in new stack
[2014-05-27 15:47:24] VERBOSE[5029][C-00000017] pbx.c: – Goto (from-trunk,s,2)
[2014-05-27 15:47:24] VERBOSE[5029][C-00000017] pbx.c: – Executing [[email protected]:2] Answer(“SIP/CUCM-00000014”, “”) in new stack
[2014-05-27 15:47:24] VERBOSE[5028][C-00000016] app_dial.c: – SIP/CUCM-00000013 answered SIP/NWT-XXXXXXXX-00000012
[2014-05-27 15:47:24] VERBOSE[5029][C-00000017] pbx.c: – Executing [[email protected]:3] Wait(“SIP/CUCM-00000014”, “2”) in new stack
[2014-05-27 15:47:26] VERBOSE[5029][C-00000017] pbx.c: – Executing [[email protected]:4] Playback(“SIP/CUCM-00000014”, “ss-noservice”) in new stack
[2014-05-27 15:47:26] VERBOSE[5029][C-00000017] file.c: – <SIP/CUCM-00000014> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[2014-05-27 15:47:26] VERBOSE[5028][C-00000016] pbx.c: == Spawn extension (ext-trunk, tdial, 9) exited non-zero on ‘SIP/NWT-XXXXXXXX-00000012’
[2014-05-27 15:47:26] VERBOSE[5029][C-00000017] pbx.c: == Spawn extension (from-trunk, s, 4) exited non-zero on ‘SIP/CUCM-00000014’
[2014-05-27 15:47:26] VERBOSE[5029][C-00000017] pbx.c: – Executing [[email protected]:1] Hangup(“SIP/CUCM-00000014”, “”) in new stack
[2014-05-27 15:47:26] VERBOSE[5029][C-00000017] pbx.c: == Spawn extension (from-trunk, h, 1) exited non-zero on ‘SIP/CUCM-00000014’

CUCM SIP Trunk information:

Trunk Name: CUCM
PEER Details
disallow=all
type=friend
host=1.1.1.1
allow=ulaw&alaw
nat=no
canreinvite=yes
qualify=yes

USER Context: CUCM-IN
USER Detail:
context=from-internal
host=1.1.1.1
type=friend

Please help to check with my configuration, and Lets me know the resolution.

Many Thanks!

Error Detail:

[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:1] Set(“SIP/NWT-XXXXXXXX-00000016”, “__FROM_DID=XXXXXXXX”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:2] Set(“SIP/NWT-XXXXXXXX-00000016”, “CDR(did)=XXXXXXXX”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/NWT-XXXXXXXX-00000016”, “1 ?Set(CALLERID(name)=ZZZZZZZZ)”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:4] Set(“SIP/NWT-XXXXXXXX-00000016”, “CHANNEL(musicclass)=default”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:5] Set(“SIP/NWT-XXXXXXXX-00000016”, “__MOHCLASS=default”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:6] Set(“SIP/NWT-XXXXXXXX-00000016”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:7] Set(“SIP/NWT-XXXXXXXX-00000016”, “CALLERPRES()=allowed_not_screened”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:8] Goto(“SIP/NWT-XXXXXXXX-00000016”, “ext-trunk,3,1”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Goto (ext-trunk,3,1)
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:1] Set(“SIP/NWT-XXXXXXXX-00000016”, “TDIAL_STRING=SIP/CUCM”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:2] Set(“SIP/NWT-XXXXXXXX-00000016”, “DIAL_TRUNK=3”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:3] Goto(“SIP/NWT-XXXXXXXX-00000016”, “ext-trunk,tdial,1”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Goto (ext-trunk,tdial,1)
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:1] Set(“SIP/NWT-XXXXXXXX-00000016”, “OUTBOUND_GROUP=OUT_3”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/NWT-XXXXXXXX-00000016”, “1?nomax”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Goto (ext-trunk,tdial,4)
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:4] ExecIf(“SIP/NWT-XXXXXXXX-00000016”, “1?Set(CALLERPRES()=allowed_not_screened)”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:5] Set(“SIP/NWT-XXXXXXXX-00000016”, “DIAL_NUMBER=XXXXXXXX”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:6] GosubIf(“SIP/NWT-XXXXXXXX-00000016”, “1?sub-flp-3,s,1()”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:1] ExecIf(“SIP/NWT-XXXXXXXX-00000016”, “0?Return()”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:2] Return(“SIP/NWT-XXXXXXXX-00000016”, “”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:7] Set(“SIP/NWT-XXXXXXXX-00000016”, “OUTNUM=9XXXXXXXX”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:8] Set(“SIP/NWT-XXXXXXXX-00000016”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] pbx.c: – Executing [[email protected]:9] Dial(“SIP/NWT-XXXXXXXX-00000016”, “SIP/CUCM/9XXXXXXXX,300,Tt”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] netsock2.c: == Using SIP RTP TOS bits 184
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] netsock2.c: == Using SIP RTP CoS mark 5
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] app_dial.c: – Called SIP/CUCM/9XXXXXXXX
[2014-05-27 15:57:42] VERBOSE[1642][C-0000001a] netsock2.c: == Using SIP RTP TOS bits 184
[2014-05-27 15:57:42] VERBOSE[1642][C-0000001a] netsock2.c: == Using SIP RTP CoS mark 5
[2014-05-27 15:57:42] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:1] Set(“SIP/CUCM-00000018”, “GROUP()=OUT_3”) in new stack
[2014-05-27 15:57:42] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:2] Goto(“SIP/CUCM-00000018”, “from-trunk,9XXXXXXXX,1”) in new stack
[2014-05-27 15:57:42] VERBOSE[5196][C-0000001a] pbx.c: – Goto (from-trunk,9XXXXXXXX,1)
[2014-05-27 15:57:42] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:1] Set(“SIP/CUCM-00000018”, “__FROM_DID=9XXXXXXXX”) in new stack
[2014-05-27 15:57:42] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:2] NoOp(“SIP/CUCM-00000018”, “Received an unknown call with DID set to 9XXXXXXXX”) in new stack
[2014-05-27 15:57:42] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:3] Goto(“SIP/CUCM-00000018”, “s,a2”) in new stack
[2014-05-27 15:57:42] VERBOSE[5196][C-0000001a] pbx.c: – Goto (from-trunk,s,2)
[2014-05-27 15:57:42] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:2] Answer(“SIP/CUCM-00000018”, “”) in new stack
[2014-05-27 15:57:42] VERBOSE[5195][C-00000019] app_dial.c: – SIP/CUCM-00000017 answered SIP/NWT-XXXXXXXX-00000016
[2014-05-27 15:57:42] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:3] Wait(“SIP/CUCM-00000018”, “2”) in new stack
[2014-05-27 15:57:44] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:4] Playback(“SIP/CUCM-00000018”, “ss-noservice”) in new stack
[2014-05-27 15:57:44] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[2014-05-27 15:57:49] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:5] SayAlpha(“SIP/CUCM-00000018”, “9XXXXXXXX”) in new stack
[2014-05-27 15:57:49] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘digits/9.ulaw’ (language ‘en’)
[2014-05-27 15:57:50] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘digits/2.ulaw’ (language ‘en’)
[2014-05-27 15:57:50] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘digits/1.ulaw’ (language ‘en’)
[2014-05-27 15:57:51] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘digits/3.ulaw’ (language ‘en’)
[2014-05-27 15:57:52] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘digits/5.ulaw’ (language ‘en’)
[2014-05-27 15:57:52] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘digits/7.ulaw’ (language ‘en’)
[2014-05-27 15:57:53] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘digits/2.ulaw’ (language ‘en’)
[2014-05-27 15:57:54] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘digits/0.ulaw’ (language ‘en’)
[2014-05-27 15:57:54] VERBOSE[5196][C-0000001a] file.c: – <SIP/CUCM-00000018> Playing ‘digits/1.ulaw’ (language ‘en’)
[2014-05-27 15:57:55] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:6] Hangup(“SIP/CUCM-00000018”, “”) in new stack
[2014-05-27 15:57:55] VERBOSE[5196][C-0000001a] pbx.c: == Spawn extension (from-trunk, s, 6) exited non-zero on ‘SIP/CUCM-00000018’
[2014-05-27 15:57:55] VERBOSE[5196][C-0000001a] pbx.c: – Executing [[email protected]:1] Hangup(“SIP/CUCM-00000018”, “”) in new stack
[2014-05-27 15:57:55] VERBOSE[5196][C-0000001a] pbx.c: == Spawn extension (from-trunk, h, 1) exited non-zero on ‘SIP/CUCM-00000018’
[2014-05-27 15:57:55] VERBOSE[5195][C-00000019] pbx.c: == Spawn extension (ext-trunk, tdial, 9) exited non-zero on ‘SIP/NWT-XXXXXXXX-00000016’

In additional, May I know why there has a additional “9” added before the DID number?

Many Thanks!

I would assume those are the digits the CUCM is sending. You need an inbound route for those digits.

Also Your trunk is still not matching, the call is coming in as a guest.

Thanks for your information.

I created the inbound via FreePBX GUI, Please find the below information.

Description: VOIP-IN
DID Number: XXXXXXXX
CallerID Number: "Blank"
CID Priority Route: "Disable"
Alert Info: "Blank"
CID name prefix: "Blank"
Music On Hold: Default
Signal RINGING: "Disable"
Pause Before Answer: "Blank"
Privacy Manager: “No”

Destination:
Trunks: CUCM (sip)

May I know is there has anything is missing?
Many Thanks!

You have X’s in the DID number? Hover over the little circle for help tips on any page.

Hi,

XXXXXXXXX is the masking only, I enter the actual DID no. on there.

Thanks!

for testing - it will allow you to accept any did and and cid. once you have that working you can then start adding routes for individual dids if necessary