<div>look at sofia_glue.c in the do_invite function :)</div><div><br></div><div>/b </div><div><br><div class="gmail_quote"><div>On Fri, Jan 27, 2017 at 3:10 PM Mohit Gupta <<a href="mailto:mohit.g81@gmail.com">mohit.g81@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg">Hello - Can someone explain me how can I configure a gateway so that it sets/unsets full or part of the SIP message fields specifically RURI, TO, FROM, CONTACT and USER AGENT dynamically for each call 'bridged' to this gateway. Also the SIP OPTIONS ping to use some statically configured values?<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I can play with the params/variables for leg A (incoming) but unable to do the same for leg B (outgoing). Exporting or static config aren't helping much.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">One example is if I like to use a SIP domain name e.g. <a href="http://sipdev.example.com" class="gmail_msg" target="_blank">sipdev.example.com</a> in SIP messages e.g. RURI of SIP OPTIONS.<br class="gmail_msg"></div><div class="gmail_msg">But <a href="http://sipdev.example.com" class="gmail_msg" target="_blank">sipdev.example.com</a> cannot be used for DNS lookup.</div><div class="gmail_msg">It is common across multiple instances and I would like send the calls to specific instance based on called number.</div><div class="gmail_msg">If I set this in Gateway param "proxy", sofia tries to perform DNS lookup before sending out SIP OPTIONS.<br class="gmail_msg"></div><div class="gmail_msg">I am unable to find a way so that sofia takes the IP to send the message to but uses the configured domain to format the SIP messages.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Is it possible by configuration or does it need some source modification?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Regards,</div><div class="gmail_msg">Mohit</div></div>
_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-users mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a></blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a> <br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font><font size="2" face="monospace, monospace"><br></font><a href="https://www.gofundme.com/freeswitch_ubuntu" style="font-size:12.8px" target="_blank"><font face="monospace, monospace">https://www.gofundme.com/freeswitch_ubuntu</font></a></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>