Page 1 of 1

URI Transfer

PostPosted: Tue Feb 19, 2013 12:31 pm
by CallCenter702
VERSION: 2.6-373a
BUILD: 120810-1018
Installed with ViciBox.i686-4.0.1.iso
Asterisk 1.4.21.2

Hi Guys,

I Apologize up front for my ignorance on this feature. But I have a media buyer that is going to transfer calls to me Via URI. Which I discovered is when they send the call as such 5555@24.234.5.55

Now I looked online extensively and people are saying that 5555 is the user name and others are saying that is just the extension, but it was enough to get me thoroughly confused. I also read that dial plan is only for outbound, but then some people talk about configuring a dial plan to route the inbound traffic for the URI. So needless to say I figured I would come to the pros on here an get a final answer before my head exploded.

All I really would like to know is can I set up a configuration so that any call coming in on 5555@24.234.5.55 goes to DID 7025551212 on my box?

Is there a simple dial plan entry for that? Please note that I am very novice on the asterisk language side of things. I can run the gui with the best of them. But if the answer is all technical IE "just reset your conf. file for an internal routing and map a .... etc. " then I'll be glazed over by mid sentence.

What I would really like is visual.

Something like "oh that is easy throw this in:"

exten => 5555,1,Dial(17025551212)

Thank you in advance.

Re: URI Transfer

PostPosted: Tue Feb 19, 2013 2:35 pm
by williamconley
Ordinarily, you would set up DID 5555 for this. No dialplan changes.

Re: URI Transfer

PostPosted: Tue Feb 19, 2013 3:50 pm
by CallCenter702
williamconley wrote:Ordinarily, you would set up DID 5555 for this. No dialplan changes.


Thanks for the quick reply William.

Alright created a 5555 Extension. It points to my floor ingroup.

I made a carrier, here is my entry:

[Transfer-in]
context=trunkinbound
type=friend
disallow=all
allow=ulaw
allow=g729
allow=gsm
dtmfmode=rfc2833
host=68.xx.xxx.0
permit=68.x.x.0/29
qualify=no
insecure=very

I told them send to my IP 64.xx.xx.34

Here is what the CLI is telling me


19 12:29:51] NOTICE[1702]: chan_sip.c:15733 handle_request_invite: Failed to authenticate user <sip:6142826500@68.xx.xx.12

Notes*
I know the Insecure=Very is bad but it was a last ditch get it to work.
They are going to send from any IP in that subnet, (this came from .12) is that the correct way to permit it in teh account entry?
It appears they are sending the Customer ANI followed by their IP. So not coming as 5555@TheirIP. Is that supposed to happen? If not, that may be the issue?

Follow up to that would be do I need them to change it to always be 5555, also if it is 5555 will I retain customer ANI? Or is the ANI@IP a better way to receive it? If the latter is the case how do I configure it to receive a call like that? Thanks!

Re: URI Transfer

PostPosted: Tue Feb 19, 2013 4:12 pm
by williamconley
5555 is the number they are dialing. Not the number they are dialing from. If you do not have a specific host IP from which these calls may arrive, you'll need to use IPTables to restrict access to the machine, and then open up all inbound calling to default to trunkinbound and accept anonymous inbound calls. Then it won't matter what IP they are from ... as long as it is in the IPtables whitelist, it'll land in trunkinbound and Bob's your uncle. :)

Re: URI Transfer

PostPosted: Tue Feb 19, 2013 4:45 pm
by CallCenter702
Awesome Will. I will do that now. Thank you.