How to format password that contains

how do i format register line in iax.conf when password contains @ character ?

normal register string looks like register => my_user:secret@host

if i have @ in password then i will end up having two @ in register string and that will confuse the server…

we can’t user md5 encoded password in iax.conf … how else can i fix this problem ??

thanks in advance.

Simple

Don’t use passwords with a @ in them.

Ian

I wish it was that simple.
Password is assisgened by voip company and I can’t change it.

I may be clueless here but, couldn’t you just use SIP instead of IAX and get around the whole iax.conf @password problem?

Go back to you voice ISP and tell them to change it , No sensible iax ITSP would assign a password with a @ in it
Also you SHOULD have control over YOUR passwords.

Ian

It is for company called cia.com
They don’t want customers to use any other ata other than sipura 2102 and all their passwords are xxxxxxxxx@cia.com.
Sipura works good with those passwords. Also Passwords can’t be changed.
I want to use cia because it costs only $3.95 / month for unlimited incoming and local outgoing.

Sometimes \ can be used to escape syntactically significant characters.

I think you can try to see if escape will work - @
Also - you can touch iax code and get around. I think this should be easy task.

But it seems that your supplier is sip not iax if they are using a sipura

Ian

[quote=“ianplain”]But it seems that your supplier is sip not iax if they are using a sipura

Ian[/quote]
You are right , it should be sip.
I just assumed that they provide both sip and iax.

i tried x-lite sip client and it registers fine.

I will try sip and will keep you posted.

Thanks all for your quick replies.

[quote=“bira_more”]I think you can try to see if escape will work - @
Also - you can touch iax code and get around. I think this should be easy task.[/quote]
thank you.
i tried that, it did not give me any errors. I am still unable to register but i think its a firewall issue now.

asterisk decodes sip register string backwards,
even with two @ signs it work good.
I have it registered now.
Thanks all for your help.