@ in dialplan

Does anybody use symbol @ in dialplan ???

I try to add in dialplan exten => ._,1,Dial(SIP/{EXTEN})

And dial 1234@abcd

but asterisk did not recognize @ as dialplan symbol !!!

Is it possible ???

i take it you’re using a softphone like EyeBeam ? does Asterisk show any log activity for a call, or is EyeBeam trying to contact the host you’re specifying directly ? (which is what happens if i use EyeBeam to dial 200@myhost.mydomain)

I use X-lite
I try send 200@myhost.com through my asterisk server

when i send to asterisk 200@myhost.com , i see in log’s nothing
when i send to asterisk only @ , i saw in logs %40

you’re going to need to post more concise information if you want us to diagnose much more.

go to the wiki and read up about sip.conf. then create an extension in the incoming context for unknown sip users and give it a go.

Ok . Tell me please: Is it possible to use @ in dialplan or not ???

in the dialplan, or the dialstring from a UA/phone ? either is a “yes”.

My conf

sip.conf
type=friend
host=dynamic
nat=yes
username=1000
secret=1000
context=test
canreinvite=no
qualify=yes
disallow=all
allow=alaw
allow=ulaw

extensions.conf
[test]
exten => _.,1,Set(foo=${EXTEN})

client X-lite

when i send from x-lite to * only 12345 - foo=12345
when i send abcd foo=abcd
when i send 12345@abcd in logs i see nothing
when i send @ in logs i see %40

i want foo=12345@abcd

What i have to config Asterisk or X-lite ???

that makes next to no sense. where is abcd ? is it a context on your Asterisk server, or a SIP proxy/registrar/gateway elsewhere ?

what are you trying to acheive by using this ?

[quote=“zorin”]when i send @ in logs i see %40
[/quote]

looks like xlite is sending the @ as URL encoded (which ends up being %40)

maybe check if you can disable url encoding in xlite?

[quote=“baconbuttie”]that makes next to no sense. where is abcd ? is it a context on your Asterisk server, or a SIP proxy/registrar/gateway elsewhere ?

what are you trying to acheive by using this ?[/quote]

I want to make calls to other Asterisk server.
I want to dial full address : 12345@other.asterisk.com

[quote=“cam”][quote=“zorin”]when i send @ in logs i see %40
[/quote]

looks like xlite is sending the @ as URL encoded (which ends up being %40)

maybe check if you can disable url encoding in xlite?[/quote]

I found nothing in x-lite.
Do you know SIP clients, that does not encoding url ???

[quote=“zorin”]I want to make calls to other Asterisk server.
I want to dial full address : 12345@other.asterisk.com[/quote]
so if X-Lite connects directly to that Asterisk server, you’re not going to see anything on your local Asterisk box are you ?

try dialling 102@asterisk.baconbuttie.co.uk with X-Lite and tell me what you get.

well someone just tried it ! :smiley:

[quote=“baconbuttie”][quote=“zorin”]I want to make calls to other Asterisk server.
I want to dial full address : 12345@other.asterisk.com[/quote]
so if X-Lite connects directly to that Asterisk server, you’re not going to see anything on your local Asterisk box are you ?

try dialling 102@asterisk.baconbuttie.co.uk with X-Lite and tell me what you get.[/quote]

I saw - Call Established !!
But I make call without registration on any servers
I make call directly to this server

X-lite makes such calls only without registration , is not it ???

if you want X-Lite to register, then you’ll need to create an Asterisk extension that then dials, e.g. exten => 102,1,Dial(SIP/102@asterisk.baconbuttie.co.uk|60|) and then X-lite dials 102.

So I understand my situation.

X-lite resolve structure 123@something.com , and try to make call directly to this server. Either with registration or not.

So i need client that don’t resolve any structures.

Do you know someone ???

i tend to not use softphones unless i really have no alternative. but it sounds like you want to actually remove what is good functionality.

if this is a commercial venture or application of Asterisk, perhaps you could contact CounterPath and see how much they’d licence a version that removed that functionality.

Thanks for help !!