<div dir="ltr"><div><div><div>Hi,<br><br></div>To catch this sip headers, it should have "X-" in front.<br><br></div>So instead "Fax", please try "X-Fax".<br><br></div>With kind regards,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div>
<br><div class="gmail_quote">On Wed, Sep 20, 2017 at 3:45 PM, Aqs Younas <span dir="ltr"><<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Greetings list,<div><br></div><div>I am trying to catch extra sip header in dialplan but of no avail. </div><div>I have tried info app and uuid_dump on the call to make show variables are appearing in console, but they were not. Though I can see header in sip trace when i run "sofia global siptrace on".</div><div><br></div><div>This is how it is appearing in sip trace.</div><div> </div><div><div>2017/09/20 11:22:37.025662 <a href="http://35.189.47.13:5060" target="_blank">35.189.47.13:5060</a> -> <a href="http://10.240.0.23:5063" target="_blank">10.240.0.23:5063</a></div><div>INVITE sip:0061862083277@sip99.<wbr>mondotalk.com:5060;transport=<wbr>udp SIP/2.0</div><div>Record-Route: <sip:35.189.47.13;lr;ftag=<wbr>9d3880-6709294b-13c4-50029-<wbr>f25-3460e079-f25;did=985.<wbr>187c7a27></div><div>From: "8300005"<<a href="http://sip:8300005@sip99.mondotalk.com:5060" target="_blank">sip:8300005@sip99.<wbr>mondotalk.com:5060</a>>;tag=<wbr>9d3880-6709294b-13c4-50029-<wbr>f25-3460e079-f25</div><div>To: <<a href="http://sip:0061862083277@sip99.mondotalk.com:5060" target="_blank">sip:0061862083277@sip99.<wbr>mondotalk.com:5060</a>></div><div><b>SRC-IP: 103.9.41.75</b></div><div><b>Customer: 8300005</b></div><div><b>Fax: out</b></div><div>Call-ID: 9eda40-6709294b-13c4-50029-<wbr>f25-31be0b2b-f25</div><div>CSeq: 32590 INVITE</div><div>Via: SIP/2.0/UDP 35.189.47.13:5060;branch=<wbr>z9hG4bK9fed.42448b27.0</div><div>Via: SIP/2.0/UDP 103.9.41.75:5060;rport=5060;<wbr>received=103.9.41.75;branch=<wbr>z9hG4bK-f25-3b2a1d-491db0d7</div><div>Max-Forwards: 69</div><div>Supported: replaces,100rel</div><div>Contact: <<a href="http://sip:8300005@103.9.41.75:5060">sip:8300005@103.9.41.75:5060</a>;<wbr>transport=udp></div><div>User-Agent: TITAN</div><div>Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,<wbr>REFER,INFO,NOTIFY,PRACK,<wbr>MESSAGE,UPDATE</div><div>Content-Type: application/sdp</div><div>Content-Length: 461</div><div><br></div><div>v=0</div><div>o=a0000 8966 6672 IN IP4 103.9.41.75</div><div>s=SIP Call</div><div>c=IN IP4 103.9.41.75</div><div>t=0 0</div><div>m=audio 53930 RTP/AVP 8 0 101 103 100 104 9 4 102 18</div><div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-15</div><div>a=rtpmap:103 G726-32/8000</div><div>a=rtpmap:100 G726-16/8000</div><div>a=rtpmap:104 G726-40/8000</div><div>a=rtpmap:9 G722/16000</div><div>a=rtpmap:4 G723-63/8000</div><div>a=rtpmap:102 G726-24/8000</div><div>a=rtpmap:18 G729/8000</div><div>a=ptime:10</div><div>a=sendrecv</div><div>a=rtcp-xr:voip-metrics</div><div><br></div></div><div><br></div><div>and </div><div><br></div><div><div>freeswitch@fax-syd-dev-01> uuid_dump 01784ffa-9df6-11e7-9716-<wbr>291629b5fb60</div><div>Event-Name: CHANNEL_DATA</div><div>Core-UUID: 499e114c-8330-11e7-b5e4-<wbr>291629b5fb60</div><div>FreeSWITCH-Hostname: fax-syd-dev-01</div><div>FreeSWITCH-Switchname: fax-syd-dev-01</div><div>FreeSWITCH-IPv4: 10.240.0.23</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2017-09-20%2011%3A22%3A50</div><div>Event-Date-GMT: Wed,%2020%20Sep%202017%2011%<wbr>3A22%3A50%20GMT</div><div>Event-Date-Timestamp: 1505906570912351</div><div>Event-Calling-File: mod_commands.c</div><div>Event-Calling-Function: uuid_dump_function</div><div>Event-Calling-Line-Number: 6138</div><div>Event-Sequence: 461193</div><div>Channel-State: CS_EXECUTE</div><div>Channel-Call-State: ACTIVE</div><div>Channel-State-Number: 4</div><div>Channel-Name: sofia/external/8300005%<a href="http://40sip99.mondotalk.com" target="_blank">40sip99<wbr>.mondotalk.com</a>%3A5060</div><div>Unique-ID: 01784ffa-9df6-11e7-9716-<wbr>291629b5fb60</div><div>Call-Direction: inbound</div><div>Presence-Call-Direction: inbound</div><div>Channel-HIT-Dialplan: true</div><div>Channel-Call-UUID: 01784ffa-9df6-11e7-9716-<wbr>291629b5fb60</div><div>Answer-State: answered</div><div>Channel-Read-Codec-Name: L16</div><div>Channel-Read-Codec-Rate: 8000</div><div>Channel-Read-Codec-Bit-Rate: 128000</div><div>Channel-Write-Codec-Name: PCMA</div><div>Channel-Write-Codec-Rate: 8000</div><div>Channel-Write-Codec-Bit-Rate: 64000</div><div>Caller-Direction: inbound</div><div>Caller-Logical-Direction: inbound</div><div>Caller-Username: 8300005</div><div>Caller-Dialplan: XML</div><div>Caller-Caller-ID-Name: 8300005</div><div>Caller-Caller-ID-Number: 8300005</div><div>Caller-Orig-Caller-ID-Name: 8300005</div><div>Caller-Orig-Caller-ID-Number: 8300005</div><div>Caller-Network-Addr: 35.189.47.13</div><div>Caller-ANI: 8300005</div><div>Caller-Destination-Number: 0061862083277</div><div>Caller-Unique-ID: 01784ffa-9df6-11e7-9716-<wbr>291629b5fb60</div><div>Caller-Source: mod_sofia</div><div>Caller-Context: public</div><div>Caller-Channel-Name: sofia/external/8300005%<a href="http://40sip99.mondotalk.com" target="_blank">40sip99<wbr>.mondotalk.com</a>%3A5060</div><div>Caller-Profile-Index: 1</div><div>Caller-Profile-Created-Time: 1505906554292369</div><div>Caller-Channel-Created-Time: 1505906554292369</div><div>Caller-Channel-Answered-Time: 1505906557192357</div><div>Caller-Channel-Progress-Time: 0</div><div>Caller-Channel-Progress-Media-<wbr>Time: 1505906557192357</div><div>Caller-Channel-Hangup-Time: 0</div><div>Caller-Channel-Transfer-Time: 0</div><div>Caller-Channel-Resurrect-Time: 0</div><div>Caller-Channel-Bridged-Time: 0</div><div>Caller-Channel-Last-Hold: 0</div><div>Caller-Channel-Hold-Accum: 0</div><div>Caller-Screen-Bit: true</div><div>Caller-Privacy-Hide-Name: false</div><div>Caller-Privacy-Hide-Number: false</div><div>variable_direction: inbound</div><div>variable_uuid: 01784ffa-9df6-11e7-9716-<wbr>291629b5fb60</div><div>variable_session_id: 4193</div><div>variable_video_media_flow: sendrecv</div><div>variable_channel_name: sofia/external/8300005%<a href="http://40sip99.mondotalk.com" target="_blank">40sip99<wbr>.mondotalk.com</a>%3A5060</div><div>variable_sip_invite_stamp: 1505906554292369</div><div>variable_sip_received_ip: 35.189.47.13</div><div>variable_sip_received_port: 5060</div><div>variable_sip_via_protocol: udp</div><div>variable_sip_from_user_<wbr>stripped: 8300005</div><div>variable_sofia_profile_name: external</div><div>variable_recovery_profile_<wbr>name: external</div><div>variable_sip_invite_route_uri: %3Csip%3A35.189.47.13%3Blr%<wbr>3Bftag%3D9d3880-6709294b-13c4-<wbr>50029-f25-3460e079-f25%3Bdid%<wbr>3D985.187c7a27%3E</div><div>variable_sip_invite_record_<wbr>route: %3Csip%3A35.189.47.13%3Blr%<wbr>3Bftag%3D9d3880-6709294b-13c4-<wbr>50029-f25-3460e079-f25%3Bdid%<wbr>3D985.187c7a27%3E</div><div>variable_sip_req_params: transport%3Dudp</div><div>variable_sip_req_user: 0061862083277</div><div>variable_sip_req_port: 5060</div><div>variable_sip_req_uri: 0061862083277%<a href="http://40sip99.mondotalk.com" target="_blank">40sip99.<wbr>mondotalk.com</a>%3A5060</div><div>variable_sip_req_host: <a href="http://sip99.mondotalk.com" target="_blank">sip99.mondotalk.com</a></div><div>variable_sip_via_host: 35.189.47.13</div><div>variable_sip_via_port: 5060</div><div>variable_max_forwards: 69</div><div>variable_call_uuid: 01784ffa-9df6-11e7-9716-<wbr>291629b5fb60</div><div>variable_audio_media_flow: sendrecv</div><div>variable_rtp_audio_recv_pt: 8</div><div>variable_rtp_use_codec_name: PCMA</div><div>variable_rtp_use_codec_rate: 8000</div><div>variable_rtp_use_codec_ptime: 10</div><div>variable_rtp_use_codec_<wbr>channels: 1</div><div>variable_rtp_last_audio_codec_<wbr>string: PCMA%408000h%4010i%401c</div><div>variable_original_read_codec: PCMA</div><div>variable_original_read_rate: 8000</div><div>variable_write_codec: PCMA</div><div>variable_write_rate: 8000</div><div>variable_dtmf_type: rfc2833</div><div>variable_local_media_ip: 10.240.0.23</div><div>variable_local_media_port: 18268</div><div>variable_advertised_media_ip: 35.197.168.74</div><div>variable_rtp_use_timer_name: soft</div><div>variable_rtp_use_pt: 8</div><div>variable_rtp_use_ssrc: 1844781053</div><div>variable_rtp_2833_send_<wbr>payload: 101</div><div>variable_rtp_2833_recv_<wbr>payload: 101</div><div>variable_remote_media_ip: 103.9.41.75</div><div>variable_remote_media_port: 53930</div><div>variable_endpoint_disposition: ANSWER</div><div>variable_api_hangup_hook: lua%20fax_hangup.lua</div><div>variable_fax_enable_t38_<wbr>request: true</div><div>variable_fax_enable_t38: true</div><div>variable_current_application_<wbr>data: /</div><div>variable_current_application: rxfax</div><div>variable_read_codec: L16</div><div>variable_read_rate: 8000</div><div>variable_rtp_local_sdp_str: v%3D0%0D%0Ao%3DFreeSWITCH%<wbr>201505888289%201505888291%<wbr>20IN%20IP4%2035.197.168.74%0D%<wbr>0As%3DFreeSWITCH%0D%0Ac%3DIN%<wbr>20IP4%2035.197.168.74%0D%0At%<wbr>3D0%200%0D%0Am%3Dimage%<wbr>2018268%20udptl%20t38%0D%0Aa%<wbr>3DT38FaxVersion%3A0%0D%0Aa%<wbr>3DT38MaxBitRate%3A14400%0D%<wbr>0Aa%3DT38FaxFillBitRemoval%0D%<wbr>0Aa%3DT38FaxRateManagement%<wbr>3AtransferredTCF%0D%0Aa%<wbr>3DT38FaxMaxBuffer%3A2000%0D%<wbr>0Aa%3DT38FaxMaxDatagram%3A400%<wbr>0D%0Aa%3DT38FaxUdpEC%<wbr>3At38UDPRedundancy%0D%0A</div><div>variable_sip_local_network_<wbr>addr: 35.197.168.74</div><div>variable_sip_reply_host: 35.189.47.13</div><div>variable_sip_reply_port: 5060</div><div>variable_sip_network_ip: 35.189.47.13</div><div>variable_sip_network_port: 5060</div><div>variable_ep_codec_string: t38</div><div>variable_sip_user_agent: TITAN</div><div>variable_sip_allow: INVITE,%20ACK,%20CANCEL,%<wbr>20BYE,%20OPTIONS,%20REFER,%<wbr>20INFO,%20NOTIFY,%20PRACK,%<wbr>20MESSAGE,%20UPDATE</div><div>variable_sip_full_via: SIP/2.0/UDP%2035.197.168.74%<wbr>3A5063%3Breceived%3D35.197.<wbr>168.74%3Brport%3D5063%<wbr>3Bbranch%<wbr>3Dz9hG4bKmeU9KQHKjjS3m</div><div>variable_sip_full_from: %3Csip%3A0061862083277%<a href="http://40sip99.mondotalk.com" target="_blank">40sip99<wbr>.mondotalk.com</a>%3A5060%3E%<wbr>3Btag%3D2HQ8NmB9v6Uca</div><div>variable_sip_to_display: 8300005</div><div>variable_sip_full_to: %228300005%22%20%3Csip%<wbr>3A8300005%<a href="http://40sip99.mondotalk.com" target="_blank">40sip99.mondotalk.<wbr>com</a>%3A5060%3E%3Btag%3D9d3880-<wbr>6709294b-13c4-50029-f25-<wbr>3460e079-f25</div><div>variable_sip_from_user: 0061862083277</div><div>variable_sip_from_port: 5060</div><div>variable_sip_from_uri: 0061862083277%<a href="http://40sip99.mondotalk.com" target="_blank">40sip99.<wbr>mondotalk.com</a>%3A5060</div><div>variable_sip_from_host: <a href="http://sip99.mondotalk.com" target="_blank">sip99.mondotalk.com</a></div><div>variable_sip_to_user: 8300005</div><div>variable_sip_to_port: 5060</div><div>variable_sip_to_uri: 8300005%<a href="http://40sip99.mondotalk.com" target="_blank">40sip99.mondotalk.com</a>%<wbr>3A5060</div><div>variable_sip_to_host: <a href="http://sip99.mondotalk.com" target="_blank">sip99.mondotalk.com</a></div><div>variable_sip_contact_params: transport%3Dudp</div><div>variable_sip_contact_user: 8300005</div><div>variable_sip_contact_port: 5060</div><div>variable_sip_contact_uri: 8300005%40103.9.41.75%3A5060</div><div>variable_sip_contact_host: 103.9.41.75</div><div>variable_sip_to_tag: 9d3880-6709294b-13c4-50029-<wbr>f25-3460e079-f25</div><div>variable_sip_from_tag: 2HQ8NmB9v6Uca</div><div>variable_sip_cseq: 112617216</div><div>variable_sip_call_id: 9eda40-6709294b-13c4-50029-<wbr>f25-31be0b2b-f25</div><div>variable_switch_r_sdp: v%3D0%0D%0Ao%3Da0000%208966%<wbr>206673%20IN%20IP4%20103.9.41.<wbr>75%0D%0As%3DSIP%20Call%0D%0Ac%<wbr>3DIN%20IP4%20103.9.41.75%0D%<wbr>0At%3D0%200%0D%0Am%3Dimage%<wbr>2053930%20udptl%20t38%0D%0Aa%<wbr>3DT38FaxVersion%3A0%0D%0Aa%<wbr>3DT38MaxBitRate%3A14400%0D%<wbr>0Aa%3DT38FaxRateManagement%<wbr>3AtransferredTCF%0D%0Aa%<wbr>3DT38FaxMaxBuffer%3A1800%0D%<wbr>0Aa%3DT38FaxMaxDatagram%3A256%<wbr>0D%0Aa%3DT38FaxUdpEC%<wbr>3At38UDPRedundancy%0D%0Aa%<wbr>3DT38Fax%0D%0A</div><div>variable_rtp_use_codec_string: OPUS,G722,PCMU,PCMA,VP8</div><div>variable_has_t38: true</div><div>variable_fax_v17_disabled: 0</div><div>variable_fax_ecm_requested: 1</div><div>variable_fax_filename: /</div></div><div><br></div><div><br></div><div>I am stuck here, please advise. </div><div><br></div><div>Best Regards,</div><div><br></div><div><br></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>