Re: [Freeswitch-users] Freeswitch in signaling path only

2009-11-02 Thread DJB
Any suggestion from anyone please?

Thank you,
Dorn B


- Original Message 
From: DJB djbin...@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/6463924...@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/6463924...@xx.xx.xx.1
46]
2009-10-30 11:09:54.285453 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
105]
2009-10-30 11:09:55.694761 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
146]
2009-10-30 11:09:57.107697 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
105]
2009-10-30 11:12:03.129097 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
146]
2009-10-30 11:12:04.546410 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@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/6463924...@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/6463924...@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 ch...@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:
 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

Re: [Freeswitch-users] Freeswitch in signaling path only

2009-11-02 Thread DJB
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.miness...@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 djbin...@yahoo.com wrote:

Any suggestion from anyone please?


Thank you,
Dorn B


- Original Message 

From: DJB djbin...@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/6463924...@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/6463924...@xx.xx.xx.1
46]
2009-10-30 11:09:54.285453 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
105]
2009-10-30 11:09:55.694761 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
146]
2009-10-30 11:09:57.107697 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
105]
2009-10-30 11:12:03.129097 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
146]
2009-10-30 11:12:04.546410 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@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/6463924...@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/6463924...@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 ch...@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

[Freeswitch-users] Freeswitch in signaling path only

2009-10-30 Thread DJB
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


Re: [Freeswitch-users] Freeswitch in signaling path only

2009-10-30 Thread Chris Burns
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@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


Re: [Freeswitch-users] Freeswitch in signaling path only

2009-10-30 Thread DJB
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/6463924...@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/6463924...@xx.xx.xx.1
46]
2009-10-30 11:09:54.285453 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
105]
2009-10-30 11:09:55.694761 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
146]
2009-10-30 11:09:57.107697 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
105]
2009-10-30 11:12:03.129097 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@xx.xx.xx.
146]
2009-10-30 11:12:04.546410 [DEBUG] switch_ivr_originate.c:63 
(sofia/external/6463924...@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/6463924...@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/6463924...@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/6463924...@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 ch...@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:
 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