Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Freeswitch in signaling path only


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
djbinter at yahoo.com
Guest





PostPosted: Fri Oct 30, 2009 11:18 am    Post subject: [Freeswitch-users] Freeswitch in signaling path only Reply with quote

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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
chris at cloudtel.com
Guest





PostPosted: Fri Oct 30, 2009 12:12 pm    Post subject: [Freeswitch-users] Freeswitch in signaling path only Reply with quote

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:
Quote:
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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
djbinter at yahoo.com
Guest





PostPosted: Fri Oct 30, 2009 1:40 pm    Post subject: [Freeswitch-users] Freeswitch in signaling path only Reply with quote

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@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@XX.XX.XX.1
46]
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
S_CONSUME_MEDIA
2009-10-30 11:09:54.422426 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
105]
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
S_CONSUME_MEDIA
2009-10-30 11:09:55.836036 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
146]
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
S_CONSUME_MEDIA
2009-10-30 11:09:57.254664 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
105]
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
S_CONSUME_MEDIA
2009-10-30 11:12:03.273055 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
146]
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
S_CONSUME_MEDIA
2009-10-30 11:12:04.682661 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@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@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@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@cloudtel.com>
To: freeswitch-users@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:
Quote:
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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
djbinter at yahoo.com
Guest





PostPosted: Mon Nov 02, 2009 12:18 pm    Post subject: [Freeswitch-users] Freeswitch in signaling path only Reply with quote

Any suggestion from anyone please?

Thank you,
Dorn B


----- Original Message ----
From: DJB <djbinter@yahoo.com>
To: freeswitch-users@lists.freeswitch.org
Sent: Fri, October 30, 2009 11:31:12 AM
Subject: Re: [Freeswitch-users] Freeswitch in signaling path only

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@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@XX.XX.XX.1
46]
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
S_CONSUME_MEDIA
2009-10-30 11:09:54.422426 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
105]
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
S_CONSUME_MEDIA
2009-10-30 11:09:55.836036 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
146]
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
S_CONSUME_MEDIA
2009-10-30 11:09:57.254664 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
105]
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
S_CONSUME_MEDIA
2009-10-30 11:12:03.273055 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
146]
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
S_CONSUME_MEDIA
2009-10-30 11:12:04.682661 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@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@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@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@cloudtel.com>
To: freeswitch-users@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:
Quote:
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@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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Mon Nov 02, 2009 12:18 pm    Post subject: [Freeswitch-users] Freeswitch in signaling path only Reply with quote

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.



On Mon, Nov 2, 2009 at 10:56 AM, DJB <djbinter@yahoo.com (djbinter@yahoo.com)> wrote:
Quote:
Any suggestion from anyone please?

Thank you,
Dorn B


----- Original Message ----

From: DJB <djbinter@yahoo.com (djbinter@yahoo.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)


Sent: Fri, October 30, 2009 11:31:12 AM
Subject: Re: [Freeswitch-users] Freeswitch in signaling path only

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@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@XX.XX.XX.1
46]
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
S_CONSUME_MEDIA
2009-10-30 11:09:54.422426 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
105]
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
S_CONSUME_MEDIA
2009-10-30 11:09:55.836036 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
146]
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
S_CONSUME_MEDIA
2009-10-30 11:09:57.254664 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
105]
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
S_CONSUME_MEDIA
2009-10-30 11:12:03.273055 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
146]
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
S_CONSUME_MEDIA
2009-10-30 11:12:04.682661 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@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@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@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@cloudtel.com (chris@cloudtel.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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:
Quote:
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@lists.freeswitch.org (FreeSWITCH-users@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@lists.freeswitch.org (FreeSWITCH-users@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@lists.freeswitch.org (FreeSWITCH-users@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
djbinter at yahoo.com
Guest





PostPosted: Mon Nov 02, 2009 12:51 pm    Post subject: [Freeswitch-users] Freeswitch in signaling path only Reply with quote

I am really sorry. I did not mean to rush or anything. I've had a problem with my email many times, so I just want to make sure that my email gets there.


Regards,
Dorn B.

From: Anthony Minessale <anthony.minessale@gmail.com>
To: freeswitch-users@lists.freeswitch.org
Sent: Mon, November 2, 2009 9:07:26 AM
Subject: Re: [Freeswitch-users] Freeswitch in signaling path only

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.



On Mon, Nov 2, 2009 at 10:56 AM, DJB <djbinter@yahoo.com (djbinter@yahoo.com)> wrote:
Quote:
Any suggestion from anyone please?

Thank you,
Dorn B


----- Original Message ----

From: DJB <djbinter@yahoo.com (djbinter@yahoo.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)


Sent: Fri, October 30, 2009 11:31:12 AM
Subject: Re: [Freeswitch-users] Freeswitch in signaling path only

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@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@XX.XX.XX.1
46]
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
S_CONSUME_MEDIA
2009-10-30 11:09:54.422426 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
105]
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
S_CONSUME_MEDIA
2009-10-30 11:09:55.836036 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
146]
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
S_CONSUME_MEDIA
2009-10-30 11:09:57.254664 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
105]
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
S_CONSUME_MEDIA
2009-10-30 11:12:03.273055 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@XX.XX.XX.
146]
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
S_CONSUME_MEDIA
2009-10-30 11:12:04.682661 [DEBUG] switch_ivr_originate.c:2061 Originate Resulted in Success: [sofia/external/6463924215@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@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@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@cloudtel.com (chris@cloudtel.com)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@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:
Quote:
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@lists.freeswitch.org (FreeSWITCH-users@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@lists.freeswitch.org (FreeSWITCH-users@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@lists.freeswitch.org (FreeSWITCH-users@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services