[Asterisk-Users] problem to place calls to NIKOTEL

Jakob Strebel mail at teamstrebel.ch
Wed Mar 3 04:36:04 MST 2004


Hello Listreaders,

I have set up asterisk the first time, using asterisk CVS 22-feb-04. Up to 
now I was able to place calls to Pulver's FWD and receive from the outside.

But the setup for NIKOTEL does not work. Trough google I found some hints 
but they did not help.

Doing a SIP debug shows me that asterisk does not send my callerid, instead 
it is sending the value "asterisk"
<snip start>
<sip:asterisk at 83.77.81.144>;tag=as304dfa69'
-------^^^^^^^^ (this is strange, I do not see this calling fwd)
<snip stop>^

here is the packet in the call setup which makes me wonder. (Asterisk is 
registered before I issue the call.)

*CLI> Mar  3 10:30:34 WARNING[81926]: chan_sip.c:495 retrans_pkt: Maximum 
retries exceeded on call 57bcb8f3510d96e467569be660075788 at 192.168.10.50 for 
seqno 102 (Request)
Mar  3 10:30:37 NOTICE[81926]: chan_sip.c:5005 handle_response: Failed to 
authenticate on INVITE to '"Jakob Strebel" 
<sip:asterisk at 83.77.81.144>;tag=as304dfa69'
   == Spawn extension (from-sip, 841627775171, 3) exited non-zero on 
'SIP/1234-ef2b'


Below you seen the relevant sip.conf and the extension.conf of my config.

In case you need a longer trace I have it available.

Q: I see somewere else in the SIP debug output: realm=asterisk. What does 
realm means?

Thank you in advance for help

jakob strebel

; SIP.CONF
;
[general]
port = 5060                     ; Port to bind to
bindaddr = 0.0.0.0              ; Address to bind to
nat=yes
externip = xxx.dyns.net       ; Addr put in SIP messages if we're behind a NAT
localnet = 192.168.10.0         ; Internal NETWORK address
localmask = 255.255.255.0      ; Internal netmask
context = from-sip              ; Default for incoming calls
maxexpirey=3600         ; Max length of incoming registration we allow
defaultexpirey=360              ; Default length of incoming/outoing 
registration
notifymimetype=text/plain       ; Allow overriding of mime type in NOTIFY
disallow=all
allow=ulaw                      ; Allow codecs in order of preference
allow=alaw
allow=gsm                       ; Disallow all codecs

register => 54501:xxxxxxx at fwd.pulver.com/1234 ; Register with FWD as 1234
register => jstrebel:xxxxxxxx at calamar0.nikotel.com ; Register with nikotel


;ext for nikotel
[nikotel]
type=friend
secret=xxxxxxxx
auth=md5
username=myname
fromuser=myname
host=calamar0.nikotel.com
context=from-sip
reinvite=yes
;canreinvite=no

EXTENSIONS.CONF
[globals]
;
FWDUSERID=54501
FWDUSERNAME=Jakob Strebel
;
FWDPHONE=SIP/1234
FWDEXTEN=1234
;
NIKUSERID=jstrebel
NIKUSERNAME=Jakob Strebel
;
NIKPHONE=SIP/1234
NIKEXTEN=1234

<snip>
;
;
[nikotel]
exten = _8.,1,SetCallerID(${NIKUSERID})
exten = _8.,2,SetCIDName(${NIKUSERNAME})
exten = _8.,3,Dial(SIP/${EXTEN:1}@calamar0.nikotel.com,60,r)
exten = _8.,4,Playback(invalid)
exten = _8.,5,Hangup

<snip>


*CLI> show dialplan
[ Context 'fwd' created by 'pbx_config' ]
   '1234' =>         1. Dial(${FWDPHONE}|30|t)                     [pbx_config]
                     2. Hangup()                                   [pbx_config]
   '_7.' =>          1. SetCallerID(${FWDUSERID})                  [pbx_config]
                     2. SetCIDName(${FWDUSERNAME})                 [pbx_config]
                     3. Dial(SIP/${EXTEN:1}@fwd.pulver.com)        [pbx_config]
                     4. Playback(invalid)                          [pbx_config]
                     5. Hangup()                                   [pbx_config]


[ Context 'nikotel' created by 'pbx_config' ]
   '_8.' =>          1. SetCallerID(${NIKUSERID})                  [pbx_config]
                     2. SetCIDName(${NIKUSERNAME})                 [pbx_config]
                     3. Dial(SIP/${EXTEN:1}@calamar0.nikotel.com|60|r) 
[pbx_config]
                     4. Playback(invalid)                          [pbx_config]
                     5. Hangup()                                   [pbx_config] 




More information about the asterisk-users mailing list