Page 1 of 1

nat=no, goautodial

PostPosted: Thu May 17, 2012 4:22 pm
by bghayad
Hi All;

Using Goautodial, I am configuring the sip phones from Admin --> Phones, but the problem I am not able to set the nat (nat=no). From where? If I set it manual, it will be overwrited, so what is the solution?

Goautodial.org 2.6.18, VERSION: 2.4-309a,BUILD: 110430-1642, Digium, Inc. Wildcard TE220 dual-span T1/E1/J1

Regards
Bilal

Re: nat=no, goautodial

PostPosted: Sat May 19, 2012 9:44 am
by williamconley
Conf Override Settings - If populated, and the Template ID is set to --NONE-- then the contents of this field are used as the conf file entries for this phone. generate_vicidial_conf for this phones server must be set to Y for this to work. This field should NOT contain the [extension] line, that will be automatically generated.

Template ID - This is the conf file template ID that this phone entry will use for its Asterisk settings. Default is --NONE--.

Admin->Templates. ;) Happy Hunting. THANKS for posting your specs!

Re: nat=no, goautodial

PostPosted: Mon May 21, 2012 1:53 am
by bghayad
Dear;

OK, I am still facing a problem.

At the Admin --> Servers --> Generate conf files is set to Y.
Phones --> Template ID = NONE
Conf Override:
nat=yes

Now, when I checked the sip-vicidial.conf, I did not find the nat=yes added to the phone configurations. I placed nat=yes twice (I mean two repeated lines), and the result was that the only configuration that is created is the [extension] and below it the two lines nat=yes and no other configuration for the other parameters. So why?? What I have to write?

Another problem is the codec orders, actually I set the Allowed Codecs: g729,gsm,ulaw,alaw and I set the Allowed Codecs With Template: 0 and the result in the configuration was that the codec generated in this sequence:
disallow=all
allow=gsm
allow=ulaw
allow=alaw
allow=g729

I did too many attempts but until now I do not know why it always set the g729 as last one?
Any advise?

Goautodial.org 2.6.18, VERSION: 2.4-309a,BUILD: 110430-1642, Digium, Inc. Wildcard TE220 dual-span T1/E1/J1

Regards
Bilal

Re: nat=no, goautodial

PostPosted: Mon May 21, 2012 10:12 am
by williamconley
Conf Override Settings - If populated, and the Template ID is set to --NONE-- then the contents of this field are used as the conf file entries for this phone.

What this means is that you must put the entire configuration entry for this phone in the field. Not just the nat setting. If you want to "add" nat to an existing set, you would edit a template and use the template. But if you want to use the conf override, you have to enter the entire set of entries.

Re: nat=no, goautodial

PostPosted: Mon May 21, 2012 5:38 pm
by bghayad
Thanks a lot for your kindly help and reply.

Still I am facing another problem, when I put the configuration in the Conf Override Settings, I see at the sip-vicidial.conf ^M at the end of each line as following:

username=523^M
secret=test^M
accountcode=523^M
callerid="523" <523>^M
mailbox=523^M
disallow=all^M
allow=ulaw^M
allow=alaw^M
allow=g729^M
type=friend^M
host=dynamic^M
canreinvite=no^M

Why this ^M??

Regards
Bilal

Re: nat=no, goautodial

PostPosted: Tue May 22, 2012 12:19 am
by bghayad
Hello;

Anyone can help me why this ^M appears when I am using Conf Override Settings?

Goautodial.org 2.6.18, VERSION: 2.4-309a,BUILD: 110430-1642, Digium, Inc. Wildcard TE220 dual-span T1/E1/J1

Regards
Bilal

Re: nat=no, goautodial

PostPosted: Wed May 23, 2012 4:52 am
by DomeDan
Its a carriage return, it looks ugly but should work anyway.

for curiosity I tried it out.
I filled "Conf Override" with the info from sip-vicidial.conf and got this in asterisk:
[May 23 11:41:26] WARNING[3317]: chan_sip.c:9778 register_verify: Failed to parse contact info
disabled the account in my softphone and enabled it again then it worked:
[May 23 11:41:31] NOTICE[3317]: chan_sip.c:13822 handle_response_peerpoke: Peer 'test' is now Reachable. (43ms / 2000ms)
maybe the file sip-vicidial.conf just had a write-lock or something.

Are you experience any issue with ^M? in that case what's the issue?
and btw if you didn't notice, you posted a password at "secret=X"

Re: nat=no, goautodial

PostPosted: Wed May 23, 2012 5:13 am
by bghayad
Thanks a lot.

There is not a way to overcome it?

Regards
Bilal

Re: nat=no, goautodial

PostPosted: Wed May 23, 2012 6:02 am
by DomeDan
You will probably have to edit the phone-data in the database or even alter some code.

But I had no problem even though I had ^M in sip-vicidial.conf
do you face any problem? in that case what?

Re: nat=no, goautodial

PostPosted: Wed May 23, 2012 6:23 am
by bghayad
Did not check if I faced problem or I am going to face problem :)

Alter some code in database, like what?

Regards
Bilal

Re: nat=no, goautodial

PostPosted: Wed May 23, 2012 6:37 am
by DomeDan
Well, check it out, its hard to repair something thats already working.

no, not code in the database... there is a script writing sip-vicidial.conf with data from the database.

anyway, Does this carriage return cause any problem?