Re: [asterisk-users] Extensions of sip trunk

2017-06-06 Thread Daniel Tryba
On Tue, Jun 06, 2017 at 12:40:21AM +0200, Hans-Peter Jansen wrote: > > Yes, something like if they can't fix the R-URI: > > exten => X_.,n,Set(TO=${CUT(SIP_HEADER(To),@,1)}) > > exten => X_.,n,Set(TO=${CUT(TO,:,2)}) > > exten => X_.,n,Goto(somewhereelsetopreventloops${TO},1) > > Sorry for the

Re: [asterisk-users] Extensions of sip trunk

2017-06-05 Thread Steve Edwards
On Tue, 6 Jun 2017, Hans-Peter Jansen wrote: I wonder, if I really need to grab the extension with Set(DN=${SIP_HEADER(TO):5}) or something similar? Yes, something like if they can't fix the R-URI: exten => X_.,n,Set(TO=${CUT(SIP_HEADER(To),@,1)}) exten => X_.,n,Set(TO=${CUT(TO,:,2)}) exten

Re: [asterisk-users] Extensions of sip trunk

2017-06-05 Thread Hans-Peter Jansen
Hi Daniel, On Montag, 5. Juni 2017 21:45:01 Daniel Tryba wrote: > On Mon, Jun 05, 2017 at 06:10:50PM +0200, Hans-Peter Jansen wrote: > > ; matches 12345678099, too > > exten => _1234567800,1,Dial(SIP/int) > > > > Except from SIP invite with tcpdump: > > > > INVITE sip:12345678@provider:5060

Re: [asterisk-users] Extensions of sip trunk

2017-06-05 Thread Daniel Tryba
On Mon, Jun 05, 2017 at 06:10:50PM +0200, Hans-Peter Jansen wrote: > ; matches 12345678099, too > exten => _1234567800,1,Dial(SIP/int) > > Except from SIP invite with tcpdump: > > INVITE sip:12345678@provider:5060 SIP/2.0 > From: ;tag=as6bc7cbbc > To:

[asterisk-users] Extensions of sip trunk

2017-06-05 Thread Hans-Peter Jansen
Hi, I just started with setting up a new asterisk system, that will operate on a sip trunk, but I wonder, how to transfer the calls to different extensions, because all calls appear as being send to the base number of the trunk. E.g. given the trunk range of 1234567800-12345678099, a call to