Hiding the URI for incoming calls

Catalog of dial plans
Post Reply
dfmckay
Posts: 4
Joined: Wed Nov 02, 2011 7:02 pm

Hiding the URI for incoming calls

Post by dfmckay » Tue Nov 15, 2011 10:27 pm

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.

User avatar
Aaron
Site Admin
Posts: 4551
Joined: Thu Jul 12, 2007 12:13 am

Re: Hiding the URI for incoming calls

Post by Aaron » Wed Nov 16, 2011 9:46 am

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.

MikeTelis
Posts: 1581
Joined: Wed Jul 30, 2008 6:48 am

Re: Hiding the URI for incoming calls

Post by MikeTelis » Wed Nov 16, 2011 11:02 am

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.

dfmckay
Posts: 4
Joined: Wed Nov 02, 2011 7:02 pm

Re: Hiding the URI for incoming calls

Post by dfmckay » Thu Nov 17, 2011 4:43 am

Thanks Aaron and Mike, I ended up using

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

for the inbound dial plan.

sam
Posts: 6
Joined: Sat Mar 23, 2013 1:40 pm

Re: Hiding the URI for incoming calls

Post by sam » Sat Mar 23, 2013 4:51 pm

dial plan.jpg
dial plan.jpg (78.99 KiB) Viewed 1646 times
Hi , something has to change ? see image attached

thank you in advance
Attachments
photo x lite.jpg
photo x lite.jpg (54.33 KiB) Viewed 1646 times

User avatar
Aaron
Site Admin
Posts: 4551
Joined: Thu Jul 12, 2007 12:13 am

Re: Hiding the URI for incoming calls

Post by Aaron » Sun Mar 24, 2013 11:32 am

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 1610 times

sam
Posts: 6
Joined: Sat Mar 23, 2013 1:40 pm

Re: Hiding the URI for incoming calls

Post by sam » Sun Mar 24, 2013 2:40 pm

thank you Aaron , very good dial plan

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest