nat=no, goautodial

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

nat=no, goautodial

Postby bghayad » Thu May 17, 2012 4:22 pm

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
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

Re: nat=no, goautodial

Postby williamconley » Sat May 19, 2012 9:44 am

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!
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: nat=no, goautodial

Postby bghayad » Mon May 21, 2012 1:53 am

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
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

Re: nat=no, goautodial

Postby williamconley » Mon May 21, 2012 10:12 am

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: nat=no, goautodial

Postby bghayad » Mon May 21, 2012 5:38 pm

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
Last edited by bghayad on Wed May 23, 2012 5:12 am, edited 1 time in total.
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

Re: nat=no, goautodial

Postby bghayad » Tue May 22, 2012 12:19 am

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
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

Re: nat=no, goautodial

Postby DomeDan » Wed May 23, 2012 4:52 am

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"
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: nat=no, goautodial

Postby bghayad » Wed May 23, 2012 5:13 am

Thanks a lot.

There is not a way to overcome it?

Regards
Bilal
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

Re: nat=no, goautodial

Postby DomeDan » Wed May 23, 2012 6:02 am

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?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: nat=no, goautodial

Postby bghayad » Wed May 23, 2012 6:23 am

Did not check if I faced problem or I am going to face problem :)

Alter some code in database, like what?

Regards
Bilal
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

Re: nat=no, goautodial

Postby DomeDan » Wed May 23, 2012 6:37 am

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?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 76 guests