Hiding the URI for incoming calls
Hiding the URI for incoming calls
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
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
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.
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
Thanks Aaron and Mike, I ended up using
sys.Dial("#{sys.Username}@local[fh=sipsorcery.com]")
for the inbound dial plan.
sys.Dial("#{sys.Username}@local[fh=sipsorcery.com]")
for the inbound dial plan.
Re: Hiding the URI for incoming calls
thank you in advance
- Attachments
-
- photo x lite.jpg (54.33 KiB) Viewed 3100 times
Re: Hiding the URI for incoming calls
That's exactly the way to do it.
Code: Select all
sys.Dial("aaronbria@local[fu=Cookie_Monster,fh=SesameStreet.com]")
Re: Hiding the URI for incoming calls
thank you Aaron , very good dial plan