[asterisk-users] two channels, each dropping into the same context, different behavior.
Ryan Goldberg
rgoldber-list-asterisk at bitburst.com
Mon Jun 25 10:31:18 CDT 2007
So, incoming calls on zap work just as I expect them - an intro is played, the
caller hits 1 for sale 2 for support or dials an extension. I'm using the
privacy option for all extensions. When calls come in from zap, they caller
is played the priv-recordintro recording, they say their name, and everything
happens normally from there on out. However, when the call comes in from sip
and id dropped into the same context, they never hear priv-recordintro, and
the callee gets the unknown caller message, but from there the call can
proceed as normal.
I'm not getting any error messages. Below is the output of asterisk -vvvv -c
-U asterisk, and the relevant output of show dialplan.
Note that the sip calls come in on extension 666.
Thanks much in advance.
Ryan
=======================================================================
show dialplan:
[ Context 'in-from-7869101' created by 'pbx_config' ]
'1' => 1. Dial(SIP/lesnet_peer/1218348xxxx|30|ptT) [pbx_config]
2. VoiceMail(200 at testingvm) [pbx_config]
3. Playback(vm-goodbye) [pbx_config]
4. Hangup() [pbx_config]
'101' => 1. Dial(SIP/lesnet_peer/1218348xxxx|30|ptT) [pbx_config]
2. VoiceMail(${EXTEN}@testingvm) [pbx_config]
3. Playback(vm-goodbye) [pbx_config]
4. Hangup() [pbx_config]
'102' => 1. Dial(SIP/lesnet_peer/1218390xxxx|30|ptT) [pbx_config]
2. VoiceMail(${EXTEN}@testingvm) [pbx_config]
3. Playback(vm-goodbye) [pbx_config]
4. Hangup() [pbx_config]
'103' => 1. Dial(SIP/lesnet_peer/1218348xxxx|30|ptT) [pbx_config]
2. VoiceMail(${EXTEN}@testingvm) [pbx_config]
3. Playback(vm-goodbye) [pbx_config]
4. Hangup() [pbx_config]
'104' => 1. Dial(SIP/lesnet_peer/1218428xxxx|30|ptT) [pbx_config]
2. VoiceMail(${EXTEN}@testingvm) [pbx_config]
3. Playback(vm-goodbye) [pbx_config]
4. Hangup() [pbx_config]
'105' => 1. Dial(SIP/lesnet_peer/1218348xxxx|30|ptT) [pbx_config]
2. VoiceMail(${EXTEN}@testingvm) [pbx_config]
3. Playback(vm-goodbye) [pbx_config]
4. Hangup() [pbx_config]
'2' => 1. Dial(SIP/lesnet_peer/1218348xxxx|30|ptT) [pbx_config]
2. VoiceMail(200 at testingvm) [pbx_config]
3. Playback(vm-goodbye) [pbx_config]
4. Hangup() [pbx_config]
'666' => 1. Answer() [pbx_config]
2. Goto(s|2) [pbx_config]
's' => 1. Answer() [pbx_config]
2. Set(CALLERID(all)=${CALLERID(all)}) [pbx_config]
3. Background(sbb-greets) [pbx_config]
4. Goto(s|1) [pbx_config]
't' => 1. Goto(s|1) [pbx_config]
===============================================================================
incoming call on zap works fine:
-- Starting simple switch on 'Zap/4-1'
[Jun 25 10:09:36] NOTICE[31818]: chan_zap.c:6351 ss_thread: Got event 18 (Ring
Begin)...
[Jun 25 10:09:39] NOTICE[31818]: chan_zap.c:6351 ss_thread: Got event 2
(Ring/Answered)...
-- Executing [s at in-from-7869101:1] Answer("Zap/4-1", "") in new stack
-- Executing [s at in-from-7869101:2] Set("Zap/4-1", "CALLERID(all)="" <>")
in new stack
-- Executing [s at in-from-7869101:3] BackGround("Zap/4-1", "sbb-greets") in
new stack
-- <Zap/4-1> Playing 'sbb-greets' (language 'en')
== CDR updated on Zap/4-1
-- Executing [2 at in-from-7869101:1] Dial("Zap/4-1",
"SIP/lesnet_peer/12183486879|30|ptT") in new stack
-- Privacy-- callerid is empty
-- <Zap/4-1> Playing 'priv-recordintro' (language 'en')
-- <Zap/4-1> Playing 'beep' (language 'en')
-- x=0, open writing: priv-callerintros/NOCALLERID_2Zap=4-1 format: gsm,
0x81d9920
-- Recording automatically stopped after a silence of 2 seconds
-- <Zap/4-1> Playing 'auth-thankyou' (language 'en')
-- <Zap/4-1> Playing 'vm-dialout' (language 'en')
-- Called lesnet_peer/12183486879
-- SIP/lesnet_peer-081d61a0 is ringing
-- Call on SIP/lesnet_peer-081d61a0 left from hold
-- SIP/lesnet_peer-081d61a0 answered Zap/4-1
-- <SIP/lesnet_peer-081d61a0> Playing 'priv-callpending' (language 'en')
-- <SIP/lesnet_peer-081d61a0> Playing
'priv-callerintros/NOCALLERID_2Zap=4-1' (language 'en')
-- <SIP/lesnet_peer-081d61a0> Playing 'screen-callee-options' (language 'en')
-- Successfully deleted priv-callerintros/NOCALLERID_2Zap=4-1 intro file
== Spawn extension (in-from-7869101, 2, 1) exited non-zero on 'Zap/4-1'
-- Hungup 'Zap/4-1'
=========================================================================
incoming call on sip to the same context does not work:
-- Executing [666 at in-from-7869101:1] Answer("SIP/192.168.123.1-081d61a0",
"") in new stack
-- Executing [666 at in-from-7869101:2] Goto("SIP/192.168.123.1-081d61a0",
"s|2") in new stack
-- Goto (in-from-7869101,s,2)
-- Executing [s at in-from-7869101:2] Set("SIP/192.168.123.1-081d61a0",
"CALLERID(all)="unknown" <unknown>") in new stack
-- Executing [s at in-from-7869101:3]
BackGround("SIP/192.168.123.1-081d61a0", "sbb-greets") in new stack
-- <SIP/192.168.123.1-081d61a0> Playing 'sbb-greets' (language 'en')
-- Executing [s at in-from-7869101:4] Goto("SIP/192.168.123.1-081d61a0",
"s|1") in new stack
-- Goto (in-from-7869101,s,1)
-- Executing [s at in-from-7869101:1] Answer("SIP/192.168.123.1-081d61a0",
"") in new stack
-- Executing [s at in-from-7869101:2] Set("SIP/192.168.123.1-081d61a0",
"CALLERID(all)="unknown" <unknown>") in new stack
-- Executing [s at in-from-7869101:3]
BackGround("SIP/192.168.123.1-081d61a0", "sbb-greets") in new stack
-- <SIP/192.168.123.1-081d61a0> Playing 'sbb-greets' (language 'en')
== CDR updated on SIP/192.168.123.1-081d61a0
-- Executing [2 at in-from-7869101:1] Dial("SIP/192.168.123.1-081d61a0",
"SIP/lesnet_peer/12183486879|30|ptT") in new stack
-- Privacy Screening, clid is 'unknown'
-- Called lesnet_peer/12183486879
-- Call on SIP/lesnet_peer-081d28d8 left from hold
-- SIP/lesnet_peer-081d28d8 is making progress passing it to
SIP/192.168.123.1-081d61a0
-- Call on SIP/lesnet_peer-081d28d8 left from hold
-- SIP/lesnet_peer-081d28d8 answered SIP/192.168.123.1-081d61a0
-- <SIP/lesnet_peer-081d28d8> Playing 'priv-callpending' (language 'en')
== Spawn extension (in-from-7869101, 2, 1) exited non-zero on
'SIP/192.168.123.1-081d61a0'
More information about the asterisk-users
mailing list