Page 1 of 1

Hiding the URI for incoming calls

Posted: Tue Nov 15, 2011 10:27 pm
by dfmckay
Is there any way of hiding the URI portion of the incoming call (the @xx.xx.xx.xx) using either an inbound call plan or modifying the native sip dialer in android? It is messy on the call log and prevents me from having the log connected with a contact.

Re: Hiding the URI for incoming calls

Posted: Wed Nov 16, 2011 9:46 am
by Aaron
You can't do it in your inbound dialplan as the SIP URI field is how the call works out how to get to your end SIP device. If you take the host portion of the URI out then it would be like posting a letter with a name but no street address.

Re: Hiding the URI for incoming calls

Posted: Wed Nov 16, 2011 11:02 am
by MikeTelis
You can't take the host portion of the URI out but you can change the host to 'sipsorcery.com':

Host = 'sipsorcery.com'
# ...
sys.SetFromHeader(, nil, Host)
sys.Dial("#{sys.Username}@local)

(it's also possible to use the fh modifier of sys.Dial string for this purpose).

This little trick helps me to return calls. Say, you got a call from 1234567890@212.11.16.96, if you try to return call and dial this URI, the call will fail. However, if you change it to 1234567890@sipsorcery.com, the call will be processed by your out dialplan.

Hope this helps.

Re: Hiding the URI for incoming calls

Posted: Thu Nov 17, 2011 4:43 am
by dfmckay
Thanks Aaron and Mike, I ended up using

sys.Dial("#{sys.Username}@local[fh=sipsorcery.com]")

for the inbound dial plan.

Re: Hiding the URI for incoming calls

Posted: Sat Mar 23, 2013 4:51 pm
by sam
dial plan.jpg
dial plan.jpg (78.99 KiB) Viewed 3099 times
Hi , something has to change ? see image attached

thank you in advance

Re: Hiding the URI for incoming calls

Posted: Sun Mar 24, 2013 11:32 am
by Aaron
That's exactly the way to do it.

Code: Select all

sys.Dial("aaronbria@local[fu=Cookie_Monster,fh=SesameStreet.com]")
incoming_bria.png
incoming_bria.png (30.55 KiB) Viewed 3063 times

Re: Hiding the URI for incoming calls

Posted: Sun Mar 24, 2013 2:40 pm
by sam
thank you Aaron , very good dial plan