yes please use our latest SVN trunk if you plan to report issues because our first questions always is "can you reproduce this issue with our latest code" And please don't reply twice to the same email asking us to hurry up an answer you faster its only monday morning here.<br>
<br><br><br><div class="gmail_quote">On Mon, Nov 2, 2009 at 10:56 AM, DJB <span dir="ltr"><<a href="mailto:djbinter@yahoo.com">djbinter@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Any suggestion from anyone please?<br>
<div class="im"><br>
Thank you,<br>
Dorn B<br>
<br>
<br>
----- Original Message ----<br>
</div><div class="im">From: DJB <<a href="mailto:djbinter@yahoo.com">djbinter@yahoo.com</a>><br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
</div><div><div></div><div class="h5">Sent: Fri, October 30, 2009 11:31:12 AM<br>
Subject: Re: [Freeswitch-users] Freeswitch in signaling path only<br>
<br>
Now i have as follows, but it's still the same result. By the way, I am running: FreeSWITCH Version 1.0.4 (exported)<br>
.<br>
.<br>
.<br>
session:execute("set","hangup_after_bridge=true")<br>
session:execute("set","continue_on_fail=true")<br>
session:execute("set","originate_timeout=2")<br>
session:execute("set","originate_retries=3")<br>
session:execute("set","progress_timeout=15")<br>
.<br>
.<br>
.<br>
while row do<br>
local gw_ip_address = row.gw_ip_address<br>
local cust_name = row.cust_name<br>
session:execute("set", "accountcode=" ..cust_name .. "")<br>
session:execute("set","bypass_media=true")<br>
session:execute("bridge","sofia/external/" .. called_num .. "@XX.XX.XX.XX.146")<br>
session:execute("set","bypass_media=true")<br>
session:execute("bridge","sofia/external/" .. called_num .. "@XX.XX.XX.XX.105")<br>
-- Block for testing -- session:execute("bridge","sofia/external/" .. called_num .. "@" .. gw_ip_address .."")<br>
row = cur:fetch (row, "a")<br>
end<br>
<br>
Here is the debug for switch_ivr_originate.c:<br>
<br>
2009-10-30 11:09:52.877832 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215@XX.XX.XX.146) State Change CS_ROUTING -> C<br>
S_CONSUME_MEDIA<br>
2009-10-30 11:09:53.17811 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.1<br>
46]<br>
2009-10-30 11:09:54.285453 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215@XX.XX.XX.105) State Change CS_ROUTING -> C<br>
S_CONSUME_MEDIA<br>
2009-10-30 11:09:54.422426 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.<br>
105]<br>
2009-10-30 11:09:55.694761 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215@XX.XX.XX.146) State Change CS_ROUTING -> C<br>
S_CONSUME_MEDIA<br>
2009-10-30 11:09:55.836036 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.<br>
146]<br>
2009-10-30 11:09:57.107697 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215@XX.XX.XX.105) State Change CS_ROUTING -> C<br>
S_CONSUME_MEDIA<br>
2009-10-30 11:09:57.254664 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.<br>
105]<br>
2009-10-30 11:12:03.129097 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215@XX.XX.XX.146) State Change CS_ROUTING -> C<br>
S_CONSUME_MEDIA<br>
2009-10-30 11:12:03.273055 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.<br>
146]<br>
2009-10-30 11:12:04.546410 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215@XX.XX.XX.105) State Change CS_ROUTING -> C<br>
S_CONSUME_MEDIA<br>
2009-10-30 11:12:04.682661 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.<br>
105]<br>
2009-10-30 11:12:15.781701 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 16 [NORMAL_CLEARING]<br>
2009-10-30 11:12:33.349162 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215@XX.XX.XX.146) State Change CS_ROUTING -> C<br>
S_CONSUME_MEDIA<br>
2009-10-30 11:12:33.470989 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.<br>
146]<br>
2009-10-30 11:12:34.724641 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 487 [ORIGINATOR_CANCEL]<br>
2009-10-30 11:12:34.730634 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 487 [ORIGINATOR_CANCEL]<br>
2009-10-30 11:12:34.750637 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 487 [ORIGINATOR_CANCEL]<br>
<br>
<br>
FIRST ROUTE: XX.XX.XX.146<br>
and I tried to failed the first route and it gave 500 back, then it goes to the next one.<br>
SECOND ROUTE: XX.XX.XX.105<br>
<br>
<br>
Thank you,<br>
Dorn B.<br>
<br>
<br>
<br>
----- Original Message ----<br>
From: Chris Burns <<a href="mailto:chris@cloudtel.com">chris@cloudtel.com</a>><br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Sent: Fri, October 30, 2009 10:00:01 AM<br>
Subject: Re: [Freeswitch-users] Freeswitch in signaling path only<br>
<br>
Do you have a debug level message from switch_ivr_originate.c in your log?<br>
"Channel is already up, delaying proxy mode 'till both legs are answered."<br>
<br>
Set bypass_media b4 each bridge. It is unsetting on you and setting<br>
bypass_media_after_bridge because you already answered the channel running<br>
the lua script.<br>
<br>
On October 30, 2009 12:03:29 pm DJB wrote:<br>
> I am wondering why I cannot do as condition#2.<br>
><br>
> For Lua in dialplan, when I have the followings:<br>
><br>
><br>
> --WORKING--<br>
> (Condition#1)<br>
> .<br>
> .<br>
> session:execute("set","bypass_media=true")<br>
> session:execute("set","hangup_after_bridge=true")<br>
> session:execute("set","continue_on_fail=true")<br>
> .<br>
> .<br>
> session:execute("bridge","sofia/external/" .. called_num ..<br>
> "@<a href="http://1.1.1.1" target="_blank">1.1.1.1</a>|sofia/external/" .. called_num .. "@<a href="http://1.1.1.2" target="_blank">1.1.1.2</a>") .<br>
> .<br>
><br>
> --NOT WORKING--<br>
> (Condition#2)<br>
> Note: FS tries to be in media path and send re-invite.<br>
> .<br>
> .<br>
> session:execute("set","bypass_media=true")<br>
> session:execute("set","hangup_after_bridge=true")<br>
> session:execute("set","continue_on_fail=true")<br>
> .<br>
> .<br>
> session:execute("bridge","sofia/external/" .. called_num .. "@<a href="http://1.1.1.1" target="_blank">1.1.1.1</a>")<br>
> session:execute("bridge","sofia/external/" .. called_num .. "@<a href="http://1.1.1.2" target="_blank">1.1.1.2</a>")<br>
> .<br>
> .<br>
><br>
> Thank you,<br>
> Dorn B.<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>