Hi Guys,<br>so when i dial from an asterisk 1.2 to asterisk 1.4 i get the following warning:<br>WARNING[640]: file.c:738 ast_readaudio_callback: Failed to write frame<br>is anyone familiar with?<br><br><div class="gmail_quote">
2010/4/29 khalid touati <span dir="ltr"><<a href="mailto:khalidtouati@gmail.com">khalidtouati@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Guys,<br>Danny: as i said from pbx1 (1.4) to pbx2 (1.2) it's working fine.<br>Peder: i just didn't want to put a lot of lines, (by the way it's dialing talking fine), but here you are:<br><br>[macro-stdexten]<br>
<br>exten => s,n,Dial(SIP/${ARG1}&IAX2/${ARG1}@${ARG1},20,tTrWw) ;Ring phone for 20 seconds<div class="im"><br>exten => s,n,Goto(s-${DIALSTATUS},1)<br><br>exten => s-NOANSWER,1,Voicemail(u${ARG1})<br>exten => s-NOANSWER,2,Goto(default,s,1)<br>
<br>exten => s-BUSY,1,Voicemail(b${ARG1})<br>exten => s-BUSY,2,Goto(default,s,1)<br><br>exten => _s-.,1,Goto(s-NOANSWER,1)<br><br>exten => a,1,VoicemailMain(${ARG1})<br><br><br><br></div><div class="gmail_quote">
2010/4/29 Peder <span dir="ltr"><<a href="mailto:peder@networkoblivion.com" target="_blank">peder@networkoblivion.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">In PBX1, where are you actually dialing the phone? The first
line of the macro just says “goto dialstatus” with no Dial statement.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>khalid
touati<div><br>
<b>Sent:</b> Thursday, April 29, 2010 2:03 PM<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br>
</div><b>Subject:</b> [asterisk-users] Code in extensions.conf to leave a voice mail
in another PBX ?!</span></p>
</div><div><div></div><div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi Guys,<br>
i spent some time to figure this out (since i love how dialplan is written) but
i decided to ask for your help guys.<br>
<br>
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.<br>
<br>
in pbx2 extensions.conf:<br>
i am using: exten => 8029,1,Dial(IAX2/pbx1/${EXTEN},20,tTWwr)<br>
<br>
in pbx1, i have:<br>
exten => 8029,1,Macro(stdexten,8029)<br>
and in stdexten macro:<br>
<br>
exten => s,n,Goto(s-${DIALSTATUS},1)<br>
exten => s-NOANSWER,1,Voicemail(u${ARG1})<br>
exten => s-NOANSWER,2,Goto(default,s,1)<br>
<br>
exten => s-BUSY,1,Voicemail(b${ARG1})<br>
exten => s-BUSY,2,Goto(default,s,1)<br>
<br>
exten => _s-.,1,Goto(s-NOANSWER,1)<br>
exten => a,1,VoicemailMain(${ARG1})<br>
<br>
when calling from 8021(pbx2) to 8029(pbx1) i get on CLI pbx1:<br>
<br>
-- Executing [s@macro-stdexten:6] Goto("IAX2/pbx2-15464", "s-NOANSWER|1")
in new stack<br>
-- Goto (macro-stdexten,s-NOANSWER,1)<br>
-- Executing [s-NOANSWER@macro-stdexten:1]
VoiceMail("IAX2/pbx2-15464", "u8029") in new stack<br>
<b>[Apr 29 14:36:35] WARNING[7307]: file.c:738 ast_readaudio_callback: Failed
to write frame</b><br>
-- <IAX2/pbx2-15464> Playing
'/var/spool/asterisk/voicemail/default/8029/unavail' (language 'en')<br>
== Spawn extension (macro-stdexten, s-NOANSWER, 1) exited non-zero on
'IAX2/pbx2-15464' in macro 'stdexten'<br>
== Spawn extension (default, 8029, 1) exited non-zero on
'IAX2/pbx2-15464'<br>
-- Hungup 'IAX2/pbx2-15464'<br>
<br>
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! <br clear="all">
<br>
-- <br>
Abdullah</p>
</div></div></div>
</div>
<br></div></div>--<div class="im"><br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>
Abdullah<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Abdullah<br>