Context=from-internal not being applied to SIP trunk?


#1

Hello Forum-
I am seeking guidance with a problem that I am running into in regards to SIP trunk configuration(s).
Currently, I have an Asterisk Box that is acting as a “routing PBX” inside my home.
asterisk*CLI> core show version
Asterisk 10.10.0 built by root @ jenkins6.schmoozecom.net on a x86_64 running Linux on 2012-11-19 22:01:37 UTC

FreePBX version is 2.11

The Asterisk Server is connected to a SIP provider, housing two external DID. Behind my Asterisk Server, I have a Cisco Call Manager that has a SIP trunk connected to my Asterisk Server. I have setup the configuration for the SIP trunk as follows through the GUI:

Trunk Name?: UCM
PEER Details?:
type=friend
host=192.168.22.100
context=from-internal
disallow=all
allow=ulaw&alaw
nat=no
canreinvite=yes
qualify=yes

User Context from-internal

I have some misc destination setup to map external number to some Extensions internally, and this is working quite well.
When I make a call from one of my internal extensions, the output sample is as follows:

– Executing [913306739811@from-internal:1] Macro(“SIP/UCM-0000000a”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/UCM-0000000a”, “TOUCH_MONITOR=1373386212.10”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/UCM-0000000a”, “AMPUSER=4001”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/UCM-0000000a”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/UCM-0000000a”, “1?Set(REALCALLERIDNUM=4001)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/UCM-0000000a”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:6] Set(“SIP/UCM-0000000a”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:7] GotoIf(“SIP/UCM-0000000a”, “1?report”) in new stack
– Goto (macro-user-callerid,s,15)
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/UCM-0000000a”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [s@macro-user-callerid:28] Set(“SIP/UCM-0000000a”, “CALLERID(number)=4001”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/UCM-0000000a”, “CALLERID(name)=Matt Gear”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/UCM-0000000a”, “CDR(cnum)=4001”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/UCM-0000000a”, “CDR(cnam)=Matt Gear”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/UCM-0000000a”, “CHANNEL(language)=en”) in new stack
– Executing [913306739811@from-internal:2] Set(“SIP/UCM-0000000a”, “MOHCLASS=default”) in new stack
– Executing [913306739811@from-internal:3] Set(“SIP/UCM-0000000a”, “_NODEST=”) in new stack
– Executing [913306739811@from-internal:4] Gosub(“SIP/UCM-0000000a”, “sub-record-check,s,1(out,913306739811,)”) in new stack
– Executing [s@sub-record-check:1] Set(“SIP/UCM-0000000a”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:2] GotoIf(“SIP/UCM-0000000a”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [s@sub-record-check:7] Set(“SIP/UCM-0000000a”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:8] GotoIf(“SIP/UCM-0000000a”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [s@sub-record-check:11] ExecIf(“SIP/UCM-0000000a”, “0?Return()”) in new stack
– Executing [s@sub-record-check:12] ExecIf(“SIP/UCM-0000000a”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:13] GotoIf(“SIP/UCM-0000000a”, “0?out,1”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/UCM-0000000a”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/UCM-0000000a”, “NOW=1373386212”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/UCM-0000000a”, “__DAY=09”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/UCM-0000000a”, “__MONTH=07”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/UCM-0000000a”, “__YEAR=2013”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/UCM-0000000a”, “__TIMESTR=20130709-121012”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/UCM-0000000a”, “__FROMEXTEN=4001”) in new stack
– Executing [s@sub-record-check:21] Set(“SIP/UCM-0000000a”, “__CALLFILENAME=out-913306739811-4001-20130709-121012-1373386212.10”) in new stack
– Executing [s@sub-record-check:22] Goto(“SIP/UCM-0000000a”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/UCM-0000000a”, “1?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/UCM-0000000a”, “0?record,1(exten,913306739811,4001)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/UCM-0000000a”, “”) in new stack
– Executing [913306739811@from-internal:5] Macro(“SIP/UCM-0000000a”, “dialout-trunk,4,13306739811,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/UCM-0000000a”, “DIAL_TRUNK=4”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/UCM-0000000a”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/UCM-0000000a”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/UCM-0000000a”, “DIAL_NUMBER=13306739811”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/UCM-0000000a”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/UCM-0000000a”, “OUTBOUND_GROUP=OUT_4”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/UCM-0000000a”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/UCM-0000000a”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/UCM-0000000a”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/UCM-0000000a”, “outbound-callerid,4”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/UCM-0000000a”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/UCM-0000000a”, “0?Set(REALCALLERIDNUM=4001)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/UCM-0000000a”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/UCM-0000000a”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/UCM-0000000a”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/UCM-0000000a”, “TRUNKOUTCID=3305771220”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/UCM-0000000a”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,14)
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/UCM-0000000a”, “1?Set(CALLERID(all)=3305771220)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/UCM-0000000a”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/UCM-0000000a”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/UCM-0000000a”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:18] Set(“SIP/UCM-0000000a”, “CDR(outbound_cnum)=3305771220”) in new stack
– Executing [s@macro-outbound-callerid:19] Set(“SIP/UCM-0000000a”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/UCM-0000000a”, “0?sub-flp-4,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/UCM-0000000a”, “OUTNUM=13306739811”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/UCM-0000000a”, “custom=SIP/3305771220”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/UCM-0000000a”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/UCM-0000000a”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/UCM-0000000a”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/UCM-0000000a”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/UCM-0000000a”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/UCM-0000000a”, “0?Set(CONNECTEDLINE(num,i)=13306739811)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/UCM-0000000a”, “0?Set(CONNECTEDLINE(name,i)=CID:3305771220)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/UCM-0000000a”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/UCM-0000000a”, “SIP/3305771220/13306739811,300,”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/3305771220/13306739811
asterisk*CLI>
– SIP/3305771220-0000000b is ringing
– SIP/3305771220-0000000b is making progress passing it to SIP/UCM-0000000a

asterisk*CLI>

This is a complete call, and works correctly (as expected)

I am now trying to add another SIP trunk (for another Phone system) and what I did was “duplicted” the trunk, using the duplicate button from the UCM, to setup for the other trunk, as the setup is the same (minus the name, the dial pattern, and the ip address from above). Bear in mind this other phone system is a CallManager express.

After setting things up and validating the sip speer:
Express 192.168.22.99 5060 OK (18 ms)
UCM 192.168.22.100 5060 OK (1 ms)

I attempt to make a call.
This time, I get the following information:

– Executing [913306739811@from-sip-external:1] NoOp(“SIP/192.168.22.99-0000000d”, “Received incoming SIP connection from unknown peer to 913306739811”) in new stack
– Executing [913306739811@from-sip-external:2] Set(“SIP/192.168.22.99-0000000d”, “DID=913306739811”) in new stack
– Executing [913306739811@from-sip-external:3] Goto(“SIP/192.168.22.99-0000000d”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“SIP/192.168.22.99-0000000d”, “0?checklang:noanonymous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [s@from-sip-external:5] Set(“SIP/192.168.22.99-0000000d”, “TIMEOUT(absolute)=15”) in new stack
Channel will hangup at 2013-07-09 12:16:19.124 EDT.
– Executing [s@from-sip-external:6] Answer(“SIP/192.168.22.99-0000000d”, “”) in new stack
– Executing [s@from-sip-external:7] Wait(“SIP/192.168.22.99-0000000d”, “2”) in new stack
– Executing [s@from-sip-external:8] Playback(“SIP/192.168.22.99-0000000d”, “ss-noservice”) in new stack
– <SIP/192.168.22.99-0000000d> Playing ‘ss-noservice.ulaw’ (language ‘en’)
– Executing [s@from-sip-external:9] PlayTones(“SIP/192.168.22.99-0000000d”, “congestion”) in new stack
– Executing [s@from-sip-external:10] Congestion(“SIP/192.168.22.99-0000000d”, “5”) in new stack
asterisk*CLI>

The thing I am confused by, is that after setting the trunk up with the same context as the original trunk, which is working fine, I notice this:

Executing [913306739811@from-sip-external:1]
Why is the system executing this trunk as from-sip-external, even though I stated otherwise in the setup of the trunk from a context level?

To further muddy the water (I’ll admit I’m not an Asterisk GURU)
In sip additional, I see the following:

[Express]
disallow=all
type=friend
host=192.168.22.99
context=from-internal
allow=ulaw
allow=alaw
nat=no
canreinvite=yes
qualify=yes

[from-internal]
context=from-trunk-sip-UCM

[UCM]
disallow=all
type=friend
host=192.168.22.100
context=from-internal
allow=ulaw
allow=alaw
nat=no
canreinvite=yes
qualify=yes

I have tried to add an additional statement in the [from-internal] with the name of my other sip trunk, but that makes no difference. Codecs are good, everything else looks good…and upon the re-order tone, I know I am at least getting the announcements from the Asterisk server.

I am really stumped at this point, and would appreciate anyone’s insight as to what I can do to get this second trunk to be processed from the “from-internal” context

Many Thanks,


#2

Not sure why I needed to so this, but the CME was not happy with having a non-authenticated SIP trunk.

In the Asterisk Server I had to add the following to the User Details:
type=friend
host=192.168.22.99
username=ucme
secret=******
canreinvite=no
nat=no
qualify=yes
insecure=port,invite
dtmfmode=rfc2833
context=from-internal

CME does not like less than 4 characters for the registration username.
If anyone is interested, I can share the CME config that got me up and going…
Just make sure you have a registrar, and authentication string in sip-ua


#3

I have used you config on elastix but still having the same problem, I can call the cisco phones from the elastix phones (my mobile phone sip client), but when i try to call from cisco phones to elastix, it says number not recognise, under sip ua, i dont seem to see any registers though, how do i get it to register


#4

!
sip-ua
retry invite 3
retry response 3
retry bye 3
retry cancel 3
timers trying 1000
sip-server ipv4:x.x.x.x (elastix ip)


(TheJames) #5

I am not clear why you are using from-internal for trunks. This will not act as expected (even if partially functional) because the context is not designed for trunks.


#6

Do you suggest I use from trunk. Mainly interested in using the free features of Elastix, I can call all the cisco phones… I can even make outbound calls via the cisco fxo port… The 2 problems I have is that the cisco phones cannot call the elastix phones… And when I make outbound calls, I can hear the other party, but they cannot hear me…


(TheJames) #7

Do you suggest I use from trunk.

Yes or from-pstn as these contexts are designed for trunks
Mainly interested in using the free features of Elastix,

This is not the Elastix forums.
I can call all the cisco phones…
I can even make outbound calls via the cisco fxo port…
The 2 problems I have is that the cisco phones cannot call the elastix phones…

I didn’t know Elastix made phones
And when I make outbound calls, I can hear the other party, but they cannot hear me…

This has nothing to do with the context.

So here is what we need to do…

  1. Explain your setup. We need to know what you are using and how you have it connected. Servers, phones, devices etc.
  2. Explain what you are trying to do. Focus to one task.
  3. Explain what you have done to accomplish that task
  4. Explain what you expected the outcome to be.
  5. Explain the actual outcome
  6. Supply logs and call traces as appropriate.

#8

Thank you for putting me in order,

Sorry no Elastix phones, this are soft phones configured to work with SIP

Setup


I am using a cisco 2811 router ,3550 POE switch, 7960 IP phones… Virtual Server running Elastix

Running Call manager Express (CME) on the 2811 with the phone line terminating into the VIC2 fxo port 0/0/0, configured CME to make and receive outbound calls. all this is working fine.
I must confess, it is my first time ever using asterix, so I have used lots of configuration on the internet.

Task


I want CME to be able to call extensions on Asterix.
I have configured Asterix thus
Peer Detail
Trunk name CallMan01
host=10.0.50.1
allow=ulaw&alaw&g711
nat=no
session-timers=refuse
canreinvite=no
username=cog
bindport=5060
secret=laXXXXXXXXXXXX001
fromuser=cog
fromdomain=10.0.50.1
type=peer
qualify=yes
dtmfmode=relay rtp-nte

Incoming

User context CallMan_incoming

type=friend&peer
host=10.0.50.1
secret=laXXXXXXXXXXXX001
canreinvite=no
nat=no
insecure=invite
context=from-trunk
qualify=yes
allow=alaw,g711,ulaw
dtmfmode=rfc2833

No Registration string

Route Settings

route name Cog

Trunk Sequence for Matched Routes

0 CallMan01


What i expect is that The extensions on Asterix can call extensions on CME vice versa via the sip trunk.

So far I can call all the extensions on CME 1XX with the extensions on Asterix 2XXX. audio is two ways are calls are very clear. However when I try to call out that’s also successful, however audio is one way,meaning the receiver cannot hear me.

I am trying to get the logs now


#9

== Using SIP RTP CoS mark 5
– Executing [107@from-internal:1] Macro(“SIP/2109-0000000f”, “user-callerid,SKIPTTL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/2109-0000000f”, “AMPUSER=2109”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/2109-0000000f”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/2109-0000000f”, “1?Set(REALCALLERIDNUM=2109)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/2109-0000000f”, “AMPUSER=2109”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/2109-0000000f”, “AMPUSERCIDNAME=2109”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/2109-0000000f”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/2109-0000000f”, “AMPUSERCID=2109”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/2109-0000000f”, “CALLERID(all)=“2109” <2109>”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“SIP/2109-0000000f”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:10] GotoIf(“SIP/2109-0000000f”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [s@macro-user-callerid:19] Set(“SIP/2109-0000000f”, “CALLERID(number)=2109”) in new stack
– Executing [s@macro-user-callerid:20] Set(“SIP/2109-0000000f”, “CALLERID(name)=2109”) in new stack
– Executing [s@macro-user-callerid:21] NoOp(“SIP/2109-0000000f”, “Using CallerID “2109” <2109>”) in new stack
– Executing [107@from-internal:2] NoOp(“SIP/2109-0000000f”, “Calling Out Route: Cog”) in new stack
– Executing [107@from-internal:3] Set(“SIP/2109-0000000f”, “MOHCLASS=default”) in new stack
– Executing [107@from-internal:4] Set(“SIP/2109-0000000f”, “_NODEST=”) in new stack
– Executing [107@from-internal:5] Macro(“SIP/2109-0000000f”, “record-enable,2109,OUT,”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/2109-0000000f”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] ExecIf(“SIP/2109-0000000f”, “0?MacroExit()”) in new stack
– Executing [s@macro-record-enable:5] GotoIf(“SIP/2109-0000000f”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,15)
– Executing [s@macro-record-enable:15] GotoIf(“SIP/2109-0000000f”, “0?IN”) in new stack
– Executing [s@macro-record-enable:16] ExecIf(“SIP/2109-0000000f”, “1?MacroExit()”) in new stack
– Executing [107@from-internal:6] Macro(“SIP/2109-0000000f”, “dialout-trunk,3,107,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/2109-0000000f”, “DIAL_TRUNK=3”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/2109-0000000f”, “0?sub-pincheck,s,1”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/2109-0000000f”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/2109-0000000f”, “DIAL_NUMBER=107”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/2109-0000000f”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/2109-0000000f”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/2109-0000000f”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/2109-0000000f”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/2109-0000000f”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/2109-0000000f”, “outbound-callerid,3”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/2109-0000000f”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/2109-0000000f”, “0?Set(REALCALLERIDNUM=2109)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/2109-0000000f”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/2109-0000000f”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/2109-0000000f”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/2109-0000000f”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/2109-0000000f”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/2109-0000000f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/2109-0000000f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/2109-0000000f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/2109-0000000f”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/2109-0000000f”, “0?sub-flp-3,s,1”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/2109-0000000f”, “OUTNUM=107”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/2109-0000000f”, “custom=SIP/callman01”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/2109-0000000f”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] Macro(“SIP/2109-0000000f”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/2109-0000000f”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/2109-0000000f”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/2109-0000000f”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:19] Dial(“SIP/2109-0000000f”, “SIP/callman01/107,300,”) in new stack
== Using SIP RTP CoS mark 5
– Called SIP/callman01/107
– SIP/callman01-00000010 is ringing
– SIP/callman01-00000010 answered SIP/2109-0000000f
– Locally bridging SIP/2109-0000000f and SIP/callman01-00000010
> 0xa218db8 – Probation passed - setting RTP source address to 10.0.50.1:17960
> 0xb6c14bd8 – Probation passed - setting RTP source address to 10.0.50.7:58266
– Executing [h@macro-dialout-trunk:1] Macro(“SIP/2109-0000000f”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/2109-0000000f”, “1?endmixmoncheck”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] NoOp(“SIP/2109-0000000f”, “End of MIXMON check”) in new stack
– Executing [s@macro-hangupcall:10] GotoIf(“SIP/2109-0000000f”, “1?nomeetmemon”) in new stack
– Goto (macro-hangupcall,s,28)
– Executing [s@macro-hangupcall:28] NoOp(“SIP/2109-0000000f”, “End of MEETME check”) in new stack
– Executing [s@macro-hangupcall:29] GotoIf(“SIP/2109-0000000f”, “1?noautomon”) in new stack
– Goto (macro-hangupcall,s,34)
– Executing [s@macro-hangupcall:34] NoOp(“SIP/2109-0000000f”, “TOUCH_MONITOR_OUTPUT=”) in new stack
– Executing [s@macro-hangupcall:35] GotoIf(“SIP/2109-0000000f”, “1?noautomon2”) in new stack
– Goto (macro-hangupcall,s,41)
– Executing [s@macro-hangupcall:41] NoOp(“SIP/2109-0000000f”, “MONITOR_FILENAME=”) in new stack
– Executing [s@macro-hangupcall:42] GotoIf(“SIP/2109-0000000f”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,45)
– Executing [s@macro-hangupcall:45] GotoIf(“SIP/2109-0000000f”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,48)
– Executing [s@macro-hangupcall:48] GotoIf(“SIP/2109-0000000f”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,50)
– Executing [s@macro-hangupcall:50] AGI(“SIP/2109-0000000f”, “hangup.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
– <SIP/2109-0000000f>AGI Script hangup.agi completed, returning 0
– Executing [s@macro-hangupcall:51] Hangup(“SIP/2109-0000000f”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on ‘SIP/2109-0000000f’ in macro ‘hangupcall’
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on ‘SIP/2109-0000000f’
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on ‘SIP/2109-0000000f’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 107, 6) exited non-zero on ‘SIP/2109-0000000f’

There are no logs coming up when I use the cisco phone to call asterix, or would you like the logs from CME?


#10

– Remote UNIX connection
– Remote UNIX connection disconnected
== Using SIP RTP CoS mark 5
– Executing [2109@from-sip-external:1] NoOp(“SIP/107-00000016”, “Received incoming SIP connection from unknown peer to 2109”) in new stack
– Executing [2109@from-sip-external:2] Set(“SIP/107-00000016”, “DID=2109”) in new stack
– Executing [2109@from-sip-external:3] Goto(“SIP/107-00000016”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“SIP/107-00000016”, “0?checklang:noanonymous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [s@from-sip-external:5] Set(“SIP/107-00000016”, “TIMEOUT(absolute)=15”) in new stack
– Channel will hangup at 2014-05-20 19:28:44.895 GMT.
– Executing [s@from-sip-external:6] Answer(“SIP/107-00000016”, “”) in new stack
> 0xb6c1c250 – Probation passed - setting RTP source address to 10.0.50.1:16652
– Executing [s@from-sip-external:7] Wait(“SIP/107-00000016”, “2”) in new stack
– Executing [s@from-sip-external:8] Playback(“SIP/107-00000016”, “ss-noservice”) in new stack
– <SIP/107-00000016> Playing ‘ss-noservice.gsm’ (language ‘en’)
– Executing [s@from-sip-external:9] PlayTones(“SIP/107-00000016”, “congestion”) in new stack
– Executing [s@from-sip-external:10] Congestion(“SIP/107-00000016”, “5”) in new stack
== Spawn extension (from-sip-external, s, 10) exited non-zero on ‘SIP/107-00000016’
– Executing [h@from-sip-external:1] Hangup(“SIP/107-00000016”, “”) in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on ‘SIP/107-00000016’
== Using SIP RTP CoS mark 5
– Executing [2109@from-sip-external:1] NoOp(“SIP/107-00000017”, “Received incoming SIP connection from unknown peer to 2109”) in new stack
– Executing [2109@from-sip-external:2] Set(“SIP/107-00000017”, “DID=2109”) in new stack
– Executing [2109@from-sip-external:3] Goto(“SIP/107-00000017”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“SIP/107-00000017”, “0?checklang:noanonymous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [s@from-sip-external:5] Set(“SIP/107-00000017”, “TIMEOUT(absolute)=15”) in new stack
– Channel will hangup at 2014-05-20 19:29:13.627 GMT.
– Executing [s@from-sip-external:6] Answer(“SIP/107-00000017”, “”) in new stack
> 0xb6c1c250 – Probation passed - setting RTP source address to 10.0.50.1:19234
– Executing [s@from-sip-external:7] Wait(“SIP/107-00000017”, “2”) in new stack
– Executing [s@from-sip-external:8] Playback(“SIP/107-00000017”, “ss-noservice”) in new stack
– <SIP/107-00000017> Playing ‘ss-noservice.gsm’ (language ‘en’)
– Executing [s@from-sip-external:9] PlayTones(“SIP/107-00000017”, “congestion”) in new stack
– Executing [s@from-sip-external:10] Congestion(“SIP/107-00000017”, “5”) in new stack
== Spawn extension (from-sip-external, s, 10) exited non-zero on ‘SIP/107-00000017’
– Executing [h@from-sip-external:1] Hangup(“SIP/107-00000017”, “”) in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on ‘SIP/107-00000017’


#11

All fixed now… Thanks to SkykingOH he is the greatest… Thanks to freepbx forum… this is where the answers are … Thank you

http://www.freepbx.org/forum/general-help/outbound-route-0