[Freeswitch-users] Freeswitch in signaling path only

DJB djbinter at yahoo.com
Fri Oct 30 11:31:12 PDT 2009


Now i have as follows, but it's still the same result.  By the way, I am running:  FreeSWITCH Version 1.0.4 (exported)
.
.
.
session:execute("set","hangup_after_bridge=true")
session:execute("set","continue_on_fail=true")
session:execute("set","originate_timeout=2")
session:execute("set","originate_retries=3")
session:execute("set","progress_timeout=15")
.
.
.
while row do
 local gw_ip_address = row.gw_ip_address
 local cust_name = row.cust_name
 session:execute("set", "accountcode=" ..cust_name .. "")
 session:execute("set","bypass_media=true")
 session:execute("bridge","sofia/external/" .. called_num .. "@XX.XX.XX.XX.146")
 session:execute("set","bypass_media=true")
 session:execute("bridge","sofia/external/" .. called_num .. "@XX.XX.XX.XX.105")
 -- Block for testing -- session:execute("bridge","sofia/external/" .. called_num .. "@" .. gw_ip_address .."")
 row = cur:fetch (row, "a")
end

Here is the debug for switch_ivr_originate.c:

2009-10-30 11:09:52.877832 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215 at XX.XX.XX.146) State Change CS_ROUTING -> C
S_CONSUME_MEDIA
2009-10-30 11:09:53.17811 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215 at XX.XX.XX.1
46]
2009-10-30 11:09:54.285453 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215 at XX.XX.XX.105) State Change CS_ROUTING -> C
S_CONSUME_MEDIA
2009-10-30 11:09:54.422426 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215 at XX.XX.XX.
105]
2009-10-30 11:09:55.694761 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215 at XX.XX.XX.146) State Change CS_ROUTING -> C
S_CONSUME_MEDIA
2009-10-30 11:09:55.836036 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215 at XX.XX.XX.
146]
2009-10-30 11:09:57.107697 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215 at XX.XX.XX.105) State Change CS_ROUTING -> C
S_CONSUME_MEDIA
2009-10-30 11:09:57.254664 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215 at XX.XX.XX.
105]
2009-10-30 11:12:03.129097 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215 at XX.XX.XX.146) State Change CS_ROUTING -> C
S_CONSUME_MEDIA
2009-10-30 11:12:03.273055 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215 at XX.XX.XX.
146]
2009-10-30 11:12:04.546410 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215 at XX.XX.XX.105) State Change CS_ROUTING -> C
S_CONSUME_MEDIA
2009-10-30 11:12:04.682661 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215 at XX.XX.XX.
105]
2009-10-30 11:12:15.781701 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 16 [NORMAL_CLEARING]
2009-10-30 11:12:33.349162 [DEBUG] switch_ivr_originate.c:63 (sofia/external/6463924215 at XX.XX.XX.146) State Change CS_ROUTING -> C
S_CONSUME_MEDIA
2009-10-30 11:12:33.470989 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215 at XX.XX.XX.
146]
2009-10-30 11:12:34.724641 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 487 [ORIGINATOR_CANCEL]
2009-10-30 11:12:34.730634 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 487 [ORIGINATOR_CANCEL]
2009-10-30 11:12:34.750637 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 487 [ORIGINATOR_CANCEL]


FIRST ROUTE: XX.XX.XX.146 
and I tried to failed the first route and it gave 500 back, then it goes to the next one.
SECOND ROUTE:  XX.XX.XX.105


Thank you,
Dorn B.



----- Original Message ----
From: Chris Burns <chris at cloudtel.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Fri, October 30, 2009 10:00:01 AM
Subject: Re: [Freeswitch-users] Freeswitch in signaling path only

Do you have a debug level message from switch_ivr_originate.c in your log?
"Channel is already up, delaying proxy mode 'till both legs are answered."

Set bypass_media b4 each bridge. It is unsetting on you and setting 
bypass_media_after_bridge because you already answered the channel running 
the lua script.

On October 30, 2009 12:03:29 pm DJB wrote:
> I am wondering why I cannot do as condition#2.
>
> For Lua in dialplan, when I have the followings:
>
>
> --WORKING--
> (Condition#1)
> .
> .
> session:execute("set","bypass_media=true")
> session:execute("set","hangup_after_bridge=true")
> session:execute("set","continue_on_fail=true")
> .
> .
>  session:execute("bridge","sofia/external/" .. called_num ..
> "@1.1.1.1|sofia/external/" .. called_num .. "@1.1.1.2") .
> .
>
> --NOT WORKING--
> (Condition#2)
> Note:  FS tries to be in media path and send re-invite.
> .
> .
> session:execute("set","bypass_media=true")
> session:execute("set","hangup_after_bridge=true")
> session:execute("set","continue_on_fail=true")
> .
> .
>  session:execute("bridge","sofia/external/" .. called_num .. "@1.1.1.1")
>  session:execute("bridge","sofia/external/" .. called_num .. "@1.1.1.2")
> .
> .
>
> Thank you,
> Dorn B.
>
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



      




More information about the FreeSWITCH-users mailing list