View previous topic :: View next topic |
Author |
Message |
c.wallace777 at gmail.com Guest
|
Posted: Tue Jun 22, 2021 11:55 am Post subject: [Freeswitch-users] Copy or Extract Contact Parameters from A |
|
|
We are working on implementing STIR/SHAKEN and have run into a snag when passing calls through our FreeSwitch LCR which sits between our call feature server and our SBC's. Our call feature server is passing parameters in the Contact for attestation-info and origination-id. It is intended that our SBC's will extract this data from the Contact and use it to generate an identity header before leaving our network. Ideally this information would be passed via X-Header(s) but unfortunately this is what we have to work with at the moment.
We have tried to use both the "sip_invite_contact_params" and "sip_contact_params" channel variables but neither of them seem to get any data from the Contact within the inbound INVITE. We had success testing with "sip_contact_user" and dumping that data to an X-Header but we can't seem to get FreeSwitch to recognize or dump the other parameters.
When debugging an active call and dumping the channel variable data for each leg of the call we don't see any of the additional parameters that are in the Contact listed in the channel variables that are dumped for either call leg's UUID.
Quote: | Contact in INVITE into FreeSwitchContact: <sip:15558675309@x.x.x.x:5060>;isup-oli=00;attestation-info=1;origination-id=1000;verstat=0sip_contact_user Dump to X-Header:X-ContactUser: 15558675309FreeSwitch Logging:EXECUTE [depth=0] sofia/core/15558675309@x.x.x.x:5060 export(sip_h_X-ContactUser=15558675309)2021-06-18 15:24:10.079576 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_h_X-ContactUser]=[15558675309]EXECUTE [depth=0] sofia/core/15558675309@x.x.x.x:5060 export(sip_h_X-ContactParam=)2021-06-18 15:24:10.079576 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_h_X-ContactParam]=[UNDEF] |
|
|
Back to top |
|
|
david.villasmil.work a... Guest
|
Posted: Tue Jun 22, 2021 12:12 pm Post subject: [Freeswitch-users] Copy or Extract Contact Parameters from A |
|
|
Have you tried just using “sip_h_[whatever]” to read from the A leg and setting it on the bridge as nolocal?
On Tue, 22 Jun 2021 at 17:25, Chris Wallace <c.wallace777@gmail.com (c.wallace777@gmail.com)> wrote:
Quote: | We are working on implementing STIR/SHAKEN and have run into a snag when passing calls through our FreeSwitch LCR which sits between our call feature server and our SBC's. Our call feature server is passing parameters in the Contact for attestation-info and origination-id. It is intended that our SBC's will extract this data from the Contact and use it to generate an identity header before leaving our network. Ideally this information would be passed via X-Header(s) but unfortunately this is what we have to work with at the moment.
We have tried to use both the "sip_invite_contact_params" and "sip_contact_params" channel variables but neither of them seem to get any data from the Contact within the inbound INVITE. We had success testing with "sip_contact_user" and dumping that data to an X-Header but we can't seem to get FreeSwitch to recognize or dump the other parameters.
When debugging an active call and dumping the channel variable data for each leg of the call we don't see any of the additional parameters that are in the Contact listed in the channel variables that are dumped for either call leg's UUID.
Quote: | Contact in INVITE into FreeSwitchContact: <sip:15558675309@x.x.x.x:5060>;isup-oli=00;attestation-info=1;origination-id=1000;verstat=0sip_contact_user Dump to X-Header:X-ContactUser: 15558675309FreeSwitch Logging:EXECUTE [depth=0] sofia/core/15558675309@x.x.x.x:5060 export(sip_h_X-ContactUser=15558675309)2021-06-18 15:24:10.079576 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_h_X-ContactUser]=[15558675309]EXECUTE [depth=0] sofia/core/15558675309@x.x.x.x:5060 export(sip_h_X-ContactParam=)2021-06-18 15:24:10.079576 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_h_X-ContactParam]=[UNDEF] |
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
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
https://freeswitch.com |
--
Regards,
David Villasmilemail: david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)
phone: +34669448337 |
|
Back to top |
|
|
brian at freeswitch.com Guest
|
Posted: Tue Jun 22, 2021 12:36 pm Post subject: [Freeswitch-users] Copy or Extract Contact Parameters from A |
|
|
Have you used the info app or the uuid_dump to investigate where it is in the variables?
/b
On Tue, Jun 22, 2021 at 11:56 AM Chris Wallace <c.wallace777@gmail.com (c.wallace777@gmail.com)> wrote:
Quote: | We are working on implementing STIR/SHAKEN and have run into a snag when passing calls through our FreeSwitch LCR which sits between our call feature server and our SBC's. Our call feature server is passing parameters in the Contact for attestation-info and origination-id. It is intended that our SBC's will extract this data from the Contact and use it to generate an identity header before leaving our network. Ideally this information would be passed via X-Header(s) but unfortunately this is what we have to work with at the moment.
We have tried to use both the "sip_invite_contact_params" and "sip_contact_params" channel variables but neither of them seem to get any data from the Contact within the inbound INVITE. We had success testing with "sip_contact_user" and dumping that data to an X-Header but we can't seem to get FreeSwitch to recognize or dump the other parameters.
When debugging an active call and dumping the channel variable data for each leg of the call we don't see any of the additional parameters that are in the Contact listed in the channel variables that are dumped for either call leg's UUID.
Quote: | Contact in INVITE into FreeSwitchContact: <sip:15558675309@x.x.x.x:5060>;isup-oli=00;attestation-info=1;origination-id=1000;verstat=0sip_contact_user Dump to X-Header:X-ContactUser: 15558675309FreeSwitch Logging:EXECUTE [depth=0] sofia/core/15558675309@x.x.x.x:5060 export(sip_h_X-ContactUser=15558675309)2021-06-18 15:24:10.079576 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_h_X-ContactUser]=[15558675309]EXECUTE [depth=0] sofia/core/15558675309@x.x.x.x:5060 export(sip_h_X-ContactParam=)2021-06-18 15:24:10.079576 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_h_X-ContactParam]=[UNDEF] |
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
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
https://freeswitch.com |
--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch] |
|
Back to top |
|
|
brian at freeswitch.com Guest
|
|
Back to top |
|
|
c.wallace777 at gmail.com Guest
|
Posted: Wed Jun 23, 2021 11:48 am Post subject: [Freeswitch-users] Copy or Extract Contact Parameters from A |
|
|
Yes, we dumped the channel variables using the info application, unfortunately it didn't expose the contact parameters that were in the Contact.
We did end up with a work around by enabling the "parse-all-invite-headers" in the sofia config and then that did indeed dump the full Contact to the "sip_i_contact" variable. We were then able to export that as a new X-Header to pass along to the SBC. Kind of messy
but it got us working in the meantime.
Ideally we would still like to be able to extract that info and place it back in the outbound contact of the b-leg. However, I have seen a couple of older posts that indicate it may be difficult because we are using the bridge application after the LCR lookup and it is difficult to manipulate the Contact because of the outbound configuration.
Thoughts?
--Chris
On Tue, Jun 22, 2021 at 1:46 PM Brian West <brian@freeswitch.com (brian@freeswitch.com)> wrote:
|
|
Back to top |
|
|
|