Extensions.conf question

All installation and configuration problems and questions

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

Extensions.conf question

Postby computergroove » Mon Apr 21, 2008 10:51 pm

I have a SIP provider (adamstelecom.net) and I have 1 phone number that can be used on 4 simultaneous connections. I can make a call from X-Lite if I use my providers username and password info without trunking through the asterisk server.

1. To use the same VOIP account on 4 simultaneous calls on a predictive outbound server do I just register the same sip account in sip.conf 4 times?

I have setup all of the users in sip.conf and i can log into the vicidial server from an agents machine using X-Lite and using the username and password that I setup for that user in the sip.conf. When I try to dial out I get a few error messages that all equal the same thing - you cant dial out.
eg "call failed: Not Found", "Call failed: Address Incomplete" etc

My Sip.conf File:

[general]
port = 5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr = 0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
context = default
disallow=all
allow=g729 ; Yes I have registered the g729 codec
allow=ulaw
allow=alaw

register => 1234:secret@adamstelecom.ath.cx
register => 1234:secret@adamstelecom.ath.cx
register => 1234:secret@adamstelecom.ath.cx
register => 1234:secret@adamstelecom.ath.cx

[authentication]
[adamstelecom]
type=peer
host=adamstelecom.ath.cx
username=1234
secret=secret
fromuser=1234
fromdomain=adamstelecom.ath.cx
context=default
insecure=very
canreinvite=no
disallow=all
allow=g729
dtmfmode=rfc2833

[1001]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=1001
secret=1234
host=dynamic
dtmfmode=rfc2833
canreinvite=no

[1002]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=1002
secret=1234
host=dynamic
dtmfmode=rfc2833
canreinvite=no

[1003]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=1003
secret=1234
host=dynamic
dtmfmode=rfc2833
canreinvite=no

[1004]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=1004
secret=1234
host=dynamic
dtmfmode=rfc2833
canreinvite=no

I believe that I am unable to make an outbound phone call from my trunked X-Lite Clients because I dont have something configured with in extensions.conf. tIn extensions.conf I see a lot of uncommented lines that I dont see as necessary.

2. Can/should I delete everything but what I need to use or are the extra lines not using up enough memory to worry about?

3. For a sip VOIP provider I was show this from devafree in this forum:

iexten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(SIP/${EXTEN:2}@adamstelecom.zth.cx,55,tTo)
exten => _91NXXNXXXXXX,3,Hangup

In the [globals] of extensions.conf I added:

SIPtrunk=SIP/1234:secret@adamstelecom.ath.cx

What have I done wrong? 1 then the number and 91 then the number in the X-Lite phone both fail.

HELP! Thanks
computergroove
 
Posts: 59
Joined: Sat Dec 29, 2007 5:24 pm

Postby mflorell » Mon Apr 21, 2008 11:11 pm

Asterisk CLI output?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby devafree » Tue Apr 22, 2008 11:22 am

Hello

Regarding the lines in extensions.conf

The priority 2 has the Dial app, and this must be the same dial pattern that you use when you dial from x-lite when it is registered to adamstelecom.

the ${EXTEN}:2 means dial the given exten after truncating the first 2 prefixed digits. So, for a call dialled as 912127773456 in x-lite when it is registered with Asterisk, Asterisk will dial it as 2127773456 in the above case. If you need to dial as say 0012127773456 from the x-lite when it is registered direct to adamstelecom, the dial pattern in that priority would be _9001NXXNXXXXXX , and ${EXTEN:1} - to truncate only 9 before dialling the number or it can as well be _001NXXNXXXXXX and just ${EXTEN}.

If you post the CLI output when you dial a call, it will be clear what is happening.

Regards

devafree
devafree
 
Posts: 180
Joined: Wed Sep 20, 2006 5:03 pm

Postby computergroove » Wed Apr 23, 2008 7:58 am

cli output:

Apr 23 08:55:35 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
Apr 23 08:55:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
Apr 23 08:55:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
Apr 23 08:55:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
vicidialnow*CLI> exit
[root@vicidialnow ~]#
Connected to Asterisk 1.2.24 currently running on vicidialnow (pid = 2429)
[root@vicidialnow ~]# Connected to Asterisk 1.2.24 currently running on vicidialnow (pid = 2429)
-bash: syntax error near unexpected token `('
Apr 23 08:54:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2323)
[root@vicidialnow ~]# Verbosity is at least 21
-bash: Verbosity: command not found
[root@vicidialnow ~]# Apr 23 08:54:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2323)
== Manager 'sendcron' logged on from 127.0.0.1
vicidialnow*CLI> Apr 23 08:54:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2323)
vicidialnow*CLI> Apr 23 08:54:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2323)
vicidialnow*CLI> Apr 23 08:54:55 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
vicidialnow*CLI> Apr 23 08:55:00 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
vicidialnow*CLI> Apr 23 08:55:00 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
vicidialnow*CLI> Apr 23 08:55:00 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
vicidialnow*CLI> == Parsing '/etc/asterisk/manager.conf': Found
vicidialnow*CLI> == Manager 'sendcron' logged on from 127.0.0.1
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:54:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2323)
vicidialnow*CLI> == Parsing '/etc/asterisk/manager.conf': Found
vicidialnow*CLI> == Manager 'sendcron' logged on from 127.0.0.1
vicidialnow*CLI> == Manager 'sendcron' logged off from 127.0.0.1
vicidialnow*CLI> == Manager 'sendcron' logged off from 127.0.0.1
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:54:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2323)
No such command 'Connected' (type 'help' for help)
No such command 'Apr' (type 'help' for help)
No such command 'Apr' (type 'help' for help)
No such command 'Apr' (type 'help' for help)
No such command 'Apr' (type 'help' for help)
No such command 'Apr' (type 'help' for help)
No such command 'Apr' (type 'help' for help)
No such command 'Apr' (type 'help' for help)
No such command '==' (type 'help' for help)
No such command '==' (type 'help' for help)
No such command '==' (type 'help' for help)
No such command '==' (type 'help' for help)
No such command '==' (type 'help' for help)
No such command '==' (type 'help' for help)
Apr 23 08:55:35 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
Apr 23 08:55:40 NOTIC-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:54:55 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
E[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
Apr 23 08:55:40 NOTIC-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:00 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
E[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
Apr 23 08:55:40 NOTIC-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:00 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
E[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
vicidialnow*CLI> exit-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:00 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)

-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# == Parsing '/etc/asterisk/manager.conf': Found
-bash: ==: command not found
[root@vicidialnow ~]# == Manager 'sendcron' logged on from 127.0.0.1
-bash: ==: command not found
[root@vicidialnow ~]# == Parsing '/etc/asterisk/manager.conf': Found
-bash: ==: command not found
[root@vicidialnow ~]# == Manager 'sendcron' logged on from 127.0.0.1
-bash: ==: command not found
[root@vicidialnow ~]# == Manager 'sendcron' logged off from 127.0.0.1
-bash: ==: command not found
[root@vicidialnow ~]# == Manager 'sendcron' logged off from 127.0.0.1
-bash: ==: command not found
[root@vicidialnow ~]# Apr 23 08:55:15 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2325)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:20 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2325)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:20 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2325)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:20 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2325)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# vicidialnow*CLI> Connected to Asterisk 1.2.24 currently running on vicidialnow (pid = 2429)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# vicidialnow*CLI> Verbosity is at least 21
-bash: vicidialnow*CLI: command not found
[root@vicidialnow ~]# vicidialnow*CLI> Apr 23 08:54:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2323)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# == Manager 'sendcron' logged on from 127.0.0.1
-bash: ==: command not found
[root@vicidialnow ~]# vicidialnow*CLI> Apr 23 08:54:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2323)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# vicidialnow*CLI> Apr 23 08:54:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2323)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# vicidialnow*CLI> Apr 23 08:54:55 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# vicidialnow*CLI> Apr 23 08:55:00 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# vicidialnow*CLI> Apr 23 08:55:00 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# vicidialnow*CLI> Apr 23 08:55:00 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2324)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# vicidialnow*CLI> == Parsing '/etc/asterisk/manager.conf': Found
-bash: vicidialnow*CLI: command not found
[root@vicidialnow ~]# vicidialnow*CLI> == Manager 'sendcron' logged on from 127.0.0.1
-bash: vicidialnow*CLI: command not found
[root@vicidialnow ~]# vicidialnow*CLI> == Parsing '/etc/asterisk/manager.conf': Found
-bash: vicidialnow*CLI: command not found
[root@vicidialnow ~]# vicidialnow*CLI> == Manager 'sendcron' logged on from 127.0.0.1
-bash: vicidialnow*CLI: command not found
[root@vicidialnow ~]# vicidialnow*CLI> == Manager 'sendcron' logged off from 127.0.0.1
-bash: vicidialnow*CLI: command not found
[root@vicidialnow ~]# vicidialnow*CLI> == Manager 'sendcron' logged off from 127.0.0.1
-bash: vicidialnow*CLI: command not found
[root@vicidialnow ~]# No such command 'Connected' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command 'Apr' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command 'Apr' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command 'Apr' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command 'Apr' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command 'Apr' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command 'Apr' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command 'Apr' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command '==' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command '==' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command '==' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command '==' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command '==' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# No such command '==' (type 'help' for help)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:35 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
-bash: syntax error near unexpected token `('
[root@vicidialnow ~]# Apr 23 08:55:40 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2326)
-bash: syntax error near unexpected token `('
computergroove
 
Posts: 59
Joined: Sat Dec 29, 2007 5:24 pm

Postby pylinuxian » Wed Apr 23, 2008 8:45 am

you must be using putty ... you right clicked & it pasted whatever you had in memory to the prompt.
anyway this output is on no use.
you can find the real log by attaching to asterisk from screen or by reading the file screenlog.0 in the root directory.
pylinuxian
 
Posts: 147
Joined: Tue Feb 26, 2008 2:21 pm

Postby computergroove » Wed Apr 23, 2008 9:24 am

I am using putty to get the output. I used the vi editor to view the screenlog.0 and I used copy and paste through putty to get this:

[root@vicidialnow ~]# asterisk -r
Asterisk 1.2.24, Copyright (C) 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
Connected to Asterisk 1.2.24 currently running on vicidialnow (pid = 2429)
Verbosity is at least 21
Apr 23 10:20:54 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2581)
Apr 23 10:20:54 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2581)
Apr 23 10:20:54 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2581)
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
Apr 23 10:21:08 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2582)
Apr 23 10:21:14 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2582)
Apr 23 10:21:14 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2582)
Apr 23 10:21:14 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2582)
vicidialnow*CLI> exit
[root@vicidialnow ~]# cd /
[root@vicidialnow /]# vi screenlog.0
Apr 23 10:20:54 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2581)
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
Apr 23 10:21:08 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2582)
Apr 23 10:21:14 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2582)
Apr 23 10:21:14 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2582)
Apr 23 10:21:14 NOTICE[2447]: chan_sip.c:5508 sip_reg_timeout: -- Registration for '3174@adamstelecom.ath.cx' timed out, trying again (Attempt #2582)
vicidialnow*CLI> exit
[root@vicidialnow ~]# cd /
[root@vicidialnow /]# vi screenlog.0
^[[0;37;40m^M^[[1;30;40m == ^[[0;37;40mParsing '/etc/asterisk/asterisk.conf': Found

Please advise as to how I can do it in another way that is useful to you if this is not good enough. Thanks
computergroove
 
Posts: 59
Joined: Sat Dec 29, 2007 5:24 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 278 guests