[Freeswitch-users] FS does not set response headers in channel variables
Steven Ayre
steveayre at gmail.com
Sun Jan 12 14:28:18 MSK 2014
Does it work if you prefix with X-, ie X-BillPaymentList not BillPaymentList
X- is a prefix that is meant to be used on any user-defined headers.
-Steve
On 12 January 2014 05:36, Sayyed Mohammad Emami Razavi <
emamirazavi at gmail.com> wrote:
> I call an extension in the trunk, pass some headers to it to validate some
> transactions. Trunk responses my invite with "SIP/2.0 480 Temporarily
> Unavailable" (not user response)
> with some headers like below:
>
> recv 906 bytes from udp/[dst.dst.dst.dst]:8090 at 05:02:33.558626:
> ------------------------------------------------------------------------
> SIP/2.0 480 Temporarily Unavailable
> From: ""<sip:TCAPI_User at dst.dst.dst.dst:8090>;tag=8SN0g1DmHy0NF
> To: <sip:91001 at dst.dst.dst.dst
> :8090>;tag=59f1478-33001dac-1f9a-50022-1f428f-b29b56e-1f428f
> Call-ID: 96685221-f5e9-1231-b1a5-000c29ae8315
> CSeq: 54415412 INVITE
> Via: SIP/2.0/UDP
> src.src.src.src:5080;rport=5080;branch=z9hG4bKtScUQtUy9rgmp
> Supported: replaces
> Info: {"MerCode":"102"}
> Sign: Ley1/8cOufqkgd7JuGR7f+jiVxSRM=
> BillPaymentList: {"paymentID":"16596500682","result":"0"}
> Content-Length: 0
>
> I run /event plain all in my fs console and no variable exists like info,
> sign and billpayment in channel variables.
> Any solution to catch response header?! I cannot define or change key of
> the headers. I should adapt to these keys!!!
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140112/aed18086/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list