I have a lua script that plays a prompt and then collects digits from an inbound call. After making a database query the call is either dropped or transferred to another server. The way I transfer the call is via the 'deflect' command. I execute that command as follows: session:execute("deflect", "user@target_server"); When I do a tcpdump, everything seems to progress as expected. I see the correct SIP messages exchanged, but after the last 200 OK is transferred Freeswitch starts sending BYE messages to the client and the client hangs up with an "Abnormal call termination". According to RFC 3515 there are no BYE messages in the protocol exchange. I have set auto hangup to false. Any ideas on what I might be doing wrong? Jonathan
did you answer the call because deflect only works on calls that have been answered since it sends a refer. before you answer you can use the "redirect" app instead to reply with a 302 rather than blind xfer. On Mon, Jan 5, 2009 at 10:43 PM, jonathan augenstine <jaugenstine@gmail.com>wrote:
I have a lua script that plays a prompt and then collects digits from an inbound call. After making a database query the call is either dropped or transferred to another server. The way I transfer the call is via the 'deflect' command. I execute that command as follows:
session:execute("deflect", "user@target_server");
When I do a tcpdump, everything seems to progress as expected. I see the correct SIP messages exchanged, but after the last 200 OK is transferred Freeswitch starts sending BYE messages to the client and the client hangs up with an "Abnormal call termination". According to RFC 3515 there are no BYE messages in the protocol exchange. I have set auto hangup to false. Any ideas on what I might be doing wrong?
Jonathan
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Yes, I do answer the call. The call flow is the lua script answers the call, plays a prompt, collects a pin code via playAndGetDigits, and then after a database lookup transfers the call via deflect. On Tue, Jan 6, 2009 at 5:47 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
did you answer the call because deflect only works on calls that have been answered since it sends a refer. before you answer you can use the "redirect" app instead to reply with a 302 rather than blind xfer.
On Mon, Jan 5, 2009 at 10:43 PM, jonathan augenstine < jaugenstine@gmail.com> wrote:
I have a lua script that plays a prompt and then collects digits from an inbound call. After making a database query the call is either dropped or transferred to another server. The way I transfer the call is via the 'deflect' command. I execute that command as follows:
session:execute("deflect", "user@target_server");
When I do a tcpdump, everything seems to progress as expected. I see the correct SIP messages exchanged, but after the last 200 OK is transferred Freeswitch starts sending BYE messages to the client and the client hangs up with an "Abnormal call termination". According to RFC 3515 there are no BYE messages in the protocol exchange. I have set auto hangup to false. Any ideas on what I might be doing wrong?
Jonathan
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
Woof! On Mon, 05 Jan 2009 23:43:26 -0500, jonathan augenstine <jaugenstine@gmail.com> wrote:
According to RFC 3515 there are no BYE messages in the protocol exchange.
Once the REFER is completed (as determined by a final response returned in the NOTIFY SIPFRAG from the REFER), the original dialog can be torn down, by either side. Thus the BYE from FreeSWITCH, clearing that dialog as it has been sucessfully transfered. --Woof
Thanks, I missed that. There must be a bug in Ekiga. On Tue, Jan 6, 2009 at 6:26 AM, Andy Spitzer <woof@nortel.com> wrote:
Woof!
On Mon, 05 Jan 2009 23:43:26 -0500, jonathan augenstine <jaugenstine@gmail.com> wrote:
According to RFC 3515 there are no BYE messages in the protocol exchange.
Once the REFER is completed (as determined by a final response returned in the NOTIFY SIPFRAG from the REFER), the original dialog can be torn down, by either side. Thus the BYE from FreeSWITCH, clearing that dialog as it has been sucessfully transfered.
--Woof
_______________________________________________ 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
participants (3)
-
Andy Spitzer
-
Anthony Minessale
-
jonathan augenstine