how to add to sip To/Contact/Invite uri on outbound call?
Is there any way to add a parameter to the outbound uri via dialplan variables? In particular, I'm wanting to investigate setting a 'tgrp' and 'trunk-context' value on some outbound calls. http://www.markholloway.com/blog/?p=352 -- Nathan ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
For others/searching benefit - found the sip_invite_parms, sip_invite_contact_params, and sip_invite_to_params variables that seem to do what is needed. Unfortunately, in my circumstance, looks like it wouldn't be feasible to use without our SIP provider having to trust us to not spoof billing due to how their systems are set up. -- Nathan On 10/06/2014 03:45 PM, Nathan Neulinger wrote:
Is there any way to add a parameter to the outbound uri via dialplan variables? In particular, I'm wanting to investigate setting a 'tgrp' and 'trunk-context' value on some outbound calls.
http://www.markholloway.com/blog/?p=352
-- Nathan
------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
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
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
I don't think sip_invite_parms, sip_invite_contact_params, and sip_invite_to_params do what you need. They append params to the invite request line, contact: and to: uris after the domain part. You need to append to the user part. Also, after looking at the blog post and RFC4904, there's no need to change the To: field. I haven't tried it, but for Contact uri maybe you can use sip_contact_user: export sip_contact_user=${sip_contact_user};tgrp=TG1-1;trunk-context=example.com On 7 October 2014 20:05, Nathan Neulinger <nneul@mst.edu> wrote:
For others/searching benefit - found the sip_invite_parms, sip_invite_contact_params, and sip_invite_to_params variables that seem to do what is needed.
Unfortunately, in my circumstance, looks like it wouldn't be feasible to use without our SIP provider having to trust us to not spoof billing due to how their systems are set up.
-- Nathan
On 10/06/2014 03:45 PM, Nathan Neulinger wrote:
Is there any way to add a parameter to the outbound uri via dialplan variables? In particular, I'm wanting to investigate setting a 'tgrp' and 'trunk-context' value on some outbound calls.
http://www.markholloway.com/blog/?p=352
-- Nathan
------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
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
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
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
-- Dušan Dragić
Ah, I didn't mean I was using all three, but point still taken on the correct header to use. Unfortunately, it looks like this won't actually be usable for me in my environment either way, so not really looking at it any further. -- Nathan On 10/08/2014 01:54 AM, Dušan Dragić wrote:
I don't think sip_invite_parms, sip_invite_contact_params, and sip_invite_to_params do what you need. They append params to the invite request line, contact: and to: uris after the domain part. You need to append to the user part. Also, after looking at the blog post and RFC4904, there's no need to change the To: field.
I haven't tried it, but for Contact uri maybe you can use sip_contact_user:
export sip_contact_user=${sip_contact_user};tgrp=TG1-1;trunk-context=example.com
On 7 October 2014 20:05, Nathan Neulinger <nneul@mst.edu> wrote:
For others/searching benefit - found the sip_invite_parms, sip_invite_contact_params, and sip_invite_to_params variables that seem to do what is needed.
Unfortunately, in my circumstance, looks like it wouldn't be feasible to use without our SIP provider having to trust us to not spoof billing due to how their systems are set up.
-- Nathan
On 10/06/2014 03:45 PM, Nathan Neulinger wrote:
Is there any way to add a parameter to the outbound uri via dialplan variables? In particular, I'm wanting to investigate setting a 'tgrp' and 'trunk-context' value on some outbound calls.
http://www.markholloway.com/blog/?p=352
-- Nathan
------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
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
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
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
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
participants (2)
-
Dušan Dragić
-
Nathan Neulinger