[asterisk-users] Code in extensions.conf to leave a voice mail in another PBX ?!

khalid touati khalidtouati at gmail.com
Thu Apr 29 14:02:46 CDT 2010


Hi Guys,
i spent some time to figure this out (since i love how dialplan is written)
but i decided to ask for your help guys.

i have two asterisk servers one is 1.2 the other is 1.4, from 1.4 (pbx1) to
1.2 (pbx2) i can leave a voice mail without any pb, but from pbx2 to pbx1 it
just hang up.

in pbx2 extensions.conf:
i am using: exten => 8029,1,Dial(IAX2/pbx1/${EXTEN},20,tTWwr)

in pbx1, i have:
exten => 8029,1,Macro(stdexten,8029)
and in stdexten macro:

exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(u${ARG1})
exten => s-NOANSWER,2,Goto(default,s,1)

exten => s-BUSY,1,Voicemail(b${ARG1})
exten => s-BUSY,2,Goto(default,s,1)

exten => _s-.,1,Goto(s-NOANSWER,1)
exten => a,1,VoicemailMain(${ARG1})

when calling from 8021(pbx2) to 8029(pbx1) i get on CLI pbx1:

-- Executing [s at macro-stdexten:6] Goto("IAX2/pbx2-15464", "s-NOANSWER|1") in
new stack
    -- Goto (macro-stdexten,s-NOANSWER,1)
    -- Executing [s-NOANSWER at macro-stdexten:1] VoiceMail("IAX2/pbx2-15464",
"u8029") in new stack
*[Apr 29 14:36:35] WARNING[7307]: file.c:738 ast_readaudio_callback: Failed
to write frame*
    -- <IAX2/pbx2-15464> Playing
'/var/spool/asterisk/voicemail/default/8029/unavail' (language 'en')
  == Spawn extension (macro-stdexten, s-NOANSWER, 1) exited non-zero on
'IAX2/pbx2-15464' in macro 'stdexten'
  == Spawn extension (default, 8029, 1) exited non-zero on 'IAX2/pbx2-15464'
    -- Hungup 'IAX2/pbx2-15464'

any other ideas how to be able to leave a voice mail from 1.2 to 1.4 or fix
the issue I'm having, thanks a lot!

-- 
Abdullah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100429/dc3c878c/attachment.htm 


More information about the asterisk-users mailing list