dudbug
New Member
- Joined
- Sep 25, 2013
- Messages
- 11
- Reaction score
- 1
I have created two PIAF servers. One to act as a sip gateway and the other to act as a stand-alone voicemail server. I have programmed a DID to act as the Pilot VM number. The pilot VM number comes in from a Tandem over a SIP trunk. In the inbound settings of the sip gateway I have the Pilot DID set to route to the stand-alone voicemail server via a SIP trunk. In the voicemail server, in inbound routes, I forward the Pilot DID to misc destinations which I have pointed to *97. I setup an Other (customer device) in the extensions menu.
When I call into the Pilot number the call routes to the voicemail platform and if I'm calling in directly from the device it works perfect....drops me right into the voicemail box.
When a call forward is processed and the call is redirected to the pilot number, all I get is the message that says Comedian Mail....essentially the voicemail server doesn't know which box to route to. I'm not sure how to get this to work. Does anyone have any ideas? Below is a snipet of the direct call and the redirect call:
Here is a call to the pilot xxx-330-0000 from handset xxx-330-0009 everything works.
-- Executing [+1xxx3300000@from-trunk:1] Set("SIP/SIP-Gateway-0000001c", "__FROM_DID=+1xxx3300000") in new stack
-- Executing [+1xxx3300000@from-trunk:2] Gosub("SIP/SIP-Gateway-0000001c", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/SIP-Gateway-0000001c", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/SIP-Gateway-0000001c", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/SIP-Gateway-0000001c", "") in new stack
-- Executing [+1xxx3300000@from-trunk:3] Set("SIP/SIP-Gateway-0000001c", "CDR(did)=+1xxx3300000") in new stack
-- Executing [+1xxx3300000@from-trunk:4] ExecIf("SIP/SIP-Gateway-0000001c", "0 ?Set(CALLERID(name)=xxx3301009)") in new stack
-- Executing [+1xxx3300000@from-trunk:5] Set("SIP/SIP-Gateway-0000001c", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [+1xxx3300000@from-trunk:6] Set("SIP/SIP-Gateway-0000001c", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [+1xxx3300000@from-trunk:7] Goto("SIP/SIP-Gateway-0000001c", "ext-miscdests,1,1") in new stack
-- Goto (ext-miscdests,1,1)
-- Executing [1@ext-miscdests:1] NoOp("SIP/SIP-Gateway-0000001c", "MiscDest: voicemail Pilot") in new stack
-- Executing [1@ext-miscdests:2] Goto("SIP/SIP-Gateway-0000001c", "from-internal,*97,1") in new stack
-- Goto (from-internal,*97,1)
-- Executing [*97@from-internal:1] Answer("SIP/SIP-Gateway-0000001c", "") in new stack
-- Executing [*97@from-internal:2] Wait("SIP/SIP-Gateway-0000001c", "1") in new stack
-- Executing [*97@from-internal:3] Macro("SIP/SIP-Gateway-0000001c", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/SIP-Gateway-0000001c", "TOUCH_MONITOR=1380730754.28") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/SIP-Gateway-0000001c", "AMPUSER=xxx3301009") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/SIP-Gateway-0000001c", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/SIP-Gateway-0000001c", "1?Set(REALCALLERIDNUM=xxx3301009)") in new stack
Here is a call to xxx-330-0009 from xxx-530-5405 redirected to the pilot number xxx-320-0000:
-- Executing [+1xxx3300000@from-trunk:1] Set("SIP/SIP-Gateway-0000001d", "__FROM_DID=+1xxx3300000") in new stack
-- Executing [+1xxx3300000@from-trunk:2] Gosub("SIP/SIP-Gateway-0000001d", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/SIP-Gateway-0000001d", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/SIP-Gateway-0000001d", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/SIP-Gateway-0000001d", "") in new stack
-- Executing [+1xxx3300000@from-trunk:3] Set("SIP/SIP-Gateway-0000001d", "CDR(did)=+1xxx3300000") in new stack
-- Executing [+1xxx3300000@from-trunk:4] ExecIf("SIP/SIP-Gateway-0000001d", "0 ?Set(CALLERID(name)=xxx5305405)") in new stack
-- Executing [+1xxx3300000@from-trunk:5] Set("SIP/SIP-Gateway-0000001d", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [+1xxx3300000@from-trunk:6] Set("SIP/SIP-Gateway-0000001d", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [+1xxx3300000@from-trunk:7] Goto("SIP/SIP-Gateway-0000001d", "ext-miscdests,1,1") in new stack
-- Goto (ext-miscdests,1,1)
-- Executing [1@ext-miscdests:1] NoOp("SIP/SIP-Gateway-0000001d", "MiscDest: voicemail Pilot") in new stack
-- Executing [1@ext-miscdests:2] Goto("SIP/SIP-Gateway-0000001d", "from-internal,*97,1") in new stack
-- Goto (from-internal,*97,1)
-- Executing [*97@from-internal:1] Answer("SIP/SIP-Gateway-0000001d", "") in new stack
-- Executing [*97@from-internal:2] Wait("SIP/SIP-Gateway-0000001d", "1") in new stack
-- Executing [*97@from-internal:3] Macro("SIP/SIP-Gateway-0000001d", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/SIP-Gateway-0000001d", "TOUCH_MONITOR=1380731066.29") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/SIP-Gateway-0000001d", "AMPUSER=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/SIP-Gateway-0000001d", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/SIP-Gateway-0000001d", "1?Set(REALCALLERIDNUM=xxx5305405)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/SIP-Gateway-0000001d", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/SIP-Gateway-0000001d", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:7] GotoIf("SIP/SIP-Gateway-0000001d", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/SIP-Gateway-0000001d", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("SIP/SIP-Gateway-0000001d", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/SIP-Gateway-0000001d", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [s@macro-user-callerid:27] Set("SIP/SIP-Gateway-0000001d", "CALLERID(number)=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:28] Set("SIP/SIP-Gateway-0000001d", "CALLERID(name)=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/SIP-Gateway-0000001d", "CDR(cnum)=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/SIP-Gateway-0000001d", "CDR(cnam)=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/SIP-Gateway-0000001d", "CHANNEL(language)=en") in new stack
-- Executing [*97@from-internal:4] Macro("SIP/SIP-Gateway-0000001d", "get-vmcontext,") in new stack
-- Executing [s@macro-get-vmcontext:1] Set("SIP/SIP-Gateway-0000001d", "VMCONTEXT=") in new stack
-- Executing [s@macro-get-vmcontext:2] GotoIf("SIP/SIP-Gateway-0000001d", "1?200:300") in new stack
-- Goto (macro-get-vmcontext,s,200)
-- Executing [s@macro-get-vmcontext:200] Set("SIP/SIP-Gateway-0000001d", "VMCONTEXT=default") in new stack
[2013-10-02 11:24:27] ERROR[28879]: app_voicemail.c:11081 acf_mailbox_exists: MAILBOX_EXISTS requires an argument (<mailbox>[@<context>])
[2013-10-02 11:24:27] WARNING[28879]: func_logic.c:192 acf_if: Syntax IF(<expr>?[<true>][:<false>]) (expr must be non-null, and either <true> or <false> must be non-null)
[2013-10-02 11:24:27] WARNING[28879]: func_logic.c:193 acf_if: In this case, <expr>='', <true>='SUCCESS', and <false>='FAILED'
-- Executing [*97@from-internal:5] Set("SIP/SIP-Gateway-0000001d", "VMBOXEXISTSSTATUS=") in new stack
-- Executing [*97@from-internal:6] GotoIf("SIP/SIP-Gateway-0000001d", "0?mbexist") in new stack
-- Executing [*97@from-internal:7] VoiceMailMain("SIP/SIP-Gateway-0000001d", "") in new stack
-- <SIP/SIP-Gateway-0000001d> Playing 'vm-login.gsm' (language 'en')
[2013-10-02 11:24:35] WARNING[28879]: app_voicemail.c:9834 vm_authenticate: Couldn't read username
-- Executing [h@from-internal:1] Hangup("SIP/SIP-Gateway-0000001d", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/SIP-Gateway-0000001d'
How do I get either the Voicemail server to route to the appropriate mailbox. I'm sure I probably need to modify both servers, but have run out of ides.
Thanks in advance for your suggestions.
Jake
When I call into the Pilot number the call routes to the voicemail platform and if I'm calling in directly from the device it works perfect....drops me right into the voicemail box.
When a call forward is processed and the call is redirected to the pilot number, all I get is the message that says Comedian Mail....essentially the voicemail server doesn't know which box to route to. I'm not sure how to get this to work. Does anyone have any ideas? Below is a snipet of the direct call and the redirect call:
Here is a call to the pilot xxx-330-0000 from handset xxx-330-0009 everything works.
-- Executing [+1xxx3300000@from-trunk:1] Set("SIP/SIP-Gateway-0000001c", "__FROM_DID=+1xxx3300000") in new stack
-- Executing [+1xxx3300000@from-trunk:2] Gosub("SIP/SIP-Gateway-0000001c", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/SIP-Gateway-0000001c", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/SIP-Gateway-0000001c", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/SIP-Gateway-0000001c", "") in new stack
-- Executing [+1xxx3300000@from-trunk:3] Set("SIP/SIP-Gateway-0000001c", "CDR(did)=+1xxx3300000") in new stack
-- Executing [+1xxx3300000@from-trunk:4] ExecIf("SIP/SIP-Gateway-0000001c", "0 ?Set(CALLERID(name)=xxx3301009)") in new stack
-- Executing [+1xxx3300000@from-trunk:5] Set("SIP/SIP-Gateway-0000001c", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [+1xxx3300000@from-trunk:6] Set("SIP/SIP-Gateway-0000001c", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [+1xxx3300000@from-trunk:7] Goto("SIP/SIP-Gateway-0000001c", "ext-miscdests,1,1") in new stack
-- Goto (ext-miscdests,1,1)
-- Executing [1@ext-miscdests:1] NoOp("SIP/SIP-Gateway-0000001c", "MiscDest: voicemail Pilot") in new stack
-- Executing [1@ext-miscdests:2] Goto("SIP/SIP-Gateway-0000001c", "from-internal,*97,1") in new stack
-- Goto (from-internal,*97,1)
-- Executing [*97@from-internal:1] Answer("SIP/SIP-Gateway-0000001c", "") in new stack
-- Executing [*97@from-internal:2] Wait("SIP/SIP-Gateway-0000001c", "1") in new stack
-- Executing [*97@from-internal:3] Macro("SIP/SIP-Gateway-0000001c", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/SIP-Gateway-0000001c", "TOUCH_MONITOR=1380730754.28") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/SIP-Gateway-0000001c", "AMPUSER=xxx3301009") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/SIP-Gateway-0000001c", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/SIP-Gateway-0000001c", "1?Set(REALCALLERIDNUM=xxx3301009)") in new stack
Here is a call to xxx-330-0009 from xxx-530-5405 redirected to the pilot number xxx-320-0000:
-- Executing [+1xxx3300000@from-trunk:1] Set("SIP/SIP-Gateway-0000001d", "__FROM_DID=+1xxx3300000") in new stack
-- Executing [+1xxx3300000@from-trunk:2] Gosub("SIP/SIP-Gateway-0000001d", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/SIP-Gateway-0000001d", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/SIP-Gateway-0000001d", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/SIP-Gateway-0000001d", "") in new stack
-- Executing [+1xxx3300000@from-trunk:3] Set("SIP/SIP-Gateway-0000001d", "CDR(did)=+1xxx3300000") in new stack
-- Executing [+1xxx3300000@from-trunk:4] ExecIf("SIP/SIP-Gateway-0000001d", "0 ?Set(CALLERID(name)=xxx5305405)") in new stack
-- Executing [+1xxx3300000@from-trunk:5] Set("SIP/SIP-Gateway-0000001d", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [+1xxx3300000@from-trunk:6] Set("SIP/SIP-Gateway-0000001d", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [+1xxx3300000@from-trunk:7] Goto("SIP/SIP-Gateway-0000001d", "ext-miscdests,1,1") in new stack
-- Goto (ext-miscdests,1,1)
-- Executing [1@ext-miscdests:1] NoOp("SIP/SIP-Gateway-0000001d", "MiscDest: voicemail Pilot") in new stack
-- Executing [1@ext-miscdests:2] Goto("SIP/SIP-Gateway-0000001d", "from-internal,*97,1") in new stack
-- Goto (from-internal,*97,1)
-- Executing [*97@from-internal:1] Answer("SIP/SIP-Gateway-0000001d", "") in new stack
-- Executing [*97@from-internal:2] Wait("SIP/SIP-Gateway-0000001d", "1") in new stack
-- Executing [*97@from-internal:3] Macro("SIP/SIP-Gateway-0000001d", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/SIP-Gateway-0000001d", "TOUCH_MONITOR=1380731066.29") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/SIP-Gateway-0000001d", "AMPUSER=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/SIP-Gateway-0000001d", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/SIP-Gateway-0000001d", "1?Set(REALCALLERIDNUM=xxx5305405)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/SIP-Gateway-0000001d", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/SIP-Gateway-0000001d", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:7] GotoIf("SIP/SIP-Gateway-0000001d", "1?report") in new stack
-- Goto (macro-user-callerid,s,14)
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/SIP-Gateway-0000001d", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("SIP/SIP-Gateway-0000001d", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/SIP-Gateway-0000001d", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [s@macro-user-callerid:27] Set("SIP/SIP-Gateway-0000001d", "CALLERID(number)=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:28] Set("SIP/SIP-Gateway-0000001d", "CALLERID(name)=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/SIP-Gateway-0000001d", "CDR(cnum)=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/SIP-Gateway-0000001d", "CDR(cnam)=xxx5305405") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/SIP-Gateway-0000001d", "CHANNEL(language)=en") in new stack
-- Executing [*97@from-internal:4] Macro("SIP/SIP-Gateway-0000001d", "get-vmcontext,") in new stack
-- Executing [s@macro-get-vmcontext:1] Set("SIP/SIP-Gateway-0000001d", "VMCONTEXT=") in new stack
-- Executing [s@macro-get-vmcontext:2] GotoIf("SIP/SIP-Gateway-0000001d", "1?200:300") in new stack
-- Goto (macro-get-vmcontext,s,200)
-- Executing [s@macro-get-vmcontext:200] Set("SIP/SIP-Gateway-0000001d", "VMCONTEXT=default") in new stack
[2013-10-02 11:24:27] ERROR[28879]: app_voicemail.c:11081 acf_mailbox_exists: MAILBOX_EXISTS requires an argument (<mailbox>[@<context>])
[2013-10-02 11:24:27] WARNING[28879]: func_logic.c:192 acf_if: Syntax IF(<expr>?[<true>][:<false>]) (expr must be non-null, and either <true> or <false> must be non-null)
[2013-10-02 11:24:27] WARNING[28879]: func_logic.c:193 acf_if: In this case, <expr>='', <true>='SUCCESS', and <false>='FAILED'
-- Executing [*97@from-internal:5] Set("SIP/SIP-Gateway-0000001d", "VMBOXEXISTSSTATUS=") in new stack
-- Executing [*97@from-internal:6] GotoIf("SIP/SIP-Gateway-0000001d", "0?mbexist") in new stack
-- Executing [*97@from-internal:7] VoiceMailMain("SIP/SIP-Gateway-0000001d", "") in new stack
-- <SIP/SIP-Gateway-0000001d> Playing 'vm-login.gsm' (language 'en')
[2013-10-02 11:24:35] WARNING[28879]: app_voicemail.c:9834 vm_authenticate: Couldn't read username
-- Executing [h@from-internal:1] Hangup("SIP/SIP-Gateway-0000001d", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/SIP-Gateway-0000001d'
How do I get either the Voicemail server to route to the appropriate mailbox. I'm sure I probably need to modify both servers, but have run out of ides.
Thanks in advance for your suggestions.
Jake