Hi mates,
Look like this development is slowly becoming in active!
Can someone share her/his sip.conf and extensions.conf settings with me, my setup is giving me a hell of problems. as you can see below. I need your pointers in this. How do i create extensions for a2billing? how do i authentificate in asterisk?
#ngrep snapshot of openser
U 168.172.200.70:59888 -> 168.172.200.87:5060
INVITE sip:
[email protected] SIP/2.0.
Via: SIP/2.0/UDP 168.172.200.70:59888;branch=z9hG4bK-d87543-2635895dcf5de608-1--d87543-;rport.
Max-Forwards: 70.
Contact: <sip:
[email protected]:59888>.
To: "1189900745"<sip:
[email protected]>.
From: "kaunda"<sip:
[email protected]:5060>;tag=a059a611.
Call-ID: OGNiM2NlODRlNWE1NjA2NzJhZDMwZWYzZDMzMjYzNTk..
CSeq: 2 INVITE.
Session-Expires: 95.
Min-SE: 90.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.
Content-Type: application/sdp.
Proxy-Authorization: Digest username="7718804597",realm="168.172.200.87",nonce="488d464fc85197859446c5618b7dafe7184c5e9b",uri="sip:
[email protected]",response="f375ed25769da8338c2116a112f99afc",algorithm=MD5.
Supported: timer.
User-Agent: X-Lite release 1011s stamp 41150.
Content-Length: 373.
.
v=0.
o=- 6 2 IN IP4 168.172.200.70.
s=CounterPath X-Lite 3.0.
c=IN IP4 168.172.200.70.
t=0 0.
m=audio 2054 RTP/AVP 107 119 100 106 0 105 98 8 101.
a=fmtp:101 0-15.
a=rtpmap:107 BV32/16000.
a=rtpmap:119 BV32-FEC/16000.
a=rtpmap:100 SPEEX/16000.
a=rtpmap:106 SPEEX-FEC/16000.
a=rtpmap:105 SPEEX-FEC/8000.
a=rtpmap:98 iLBC/8000.
a=rtpmap:101 telephone-event/8000.
a=sendrecv.
#
U 168.172.200.87:5060 -> 168.172.200.70:59888
SIP/2.0 500 Server Internal Error.
Via: SIP/2.0/UDP 168.172.200.70:59888;branch=z9hG4bK-d87543-2635895dcf5de608-1--d87543-;rport=59888.
To: "1189900745"<sip:
[email protected]>;tag=9a17bd4180f96d7136f8b30b25c6947e.86e9.
From: "kaunda"<sip:
[email protected]:5060>;tag=a059a611.
Call-ID: OGNiM2NlODRlNWE1NjA2NzJhZDMwZWYzZDMzMjYzNTk..
CSeq: 2 INVITE.
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
#Asterisk log
[May 30 15:10:04] NOTICE[2679] chan_sip.c: Failed to authenticate user "7718804597"<sip:
[email protected]:5060>;tag=$
#my sip.conf
[openser]
; For incoming calls only. Example: FWD (Free World Dialup)
; We match on IP address of the proxy for incoming calls
; since we can not match on username (caller id)
type=friend
context=a2billing
host=168.172.200.87
fromdomain=168.172.200.87
insecure=invite
port=5060
disallow=all
allow=ulaw
canreinvite=no
nat=yes
no=qualify
#my extensions.conf
[general]
static=yes
writeprotect=no
autofallback=no
[a2billing]
exten => 1189900745,1,Dial(SIP/
[email protected],30)
exten => 7718804597,2,Dial(SIP/
[email protected],30)
exten => _XXXXXXXXXX,3,Dial(SIP/${EXTEN}@168.172.200.87,30)