Hi all!
I have Asterisk 1.2.14 (bristuff0.3.0preR8x) installed and i have 2 sip
accounts (A and B) registered at a sip-provider
I want my leds (functionkey 1) on the snom 190 to be lighted when a call
comes in on account A and my
functionkey 2 on account B.
Is there a way to do this with making a hint extension for the SIP account A
and B?
I tried it this way (without success):
sip.conf:
[11]
...
subscribecontext=Snom11
extensions.conf:
[Snom11]
exten => 141,hint,DS/141
[from_Account_A]
exten => ${ACCOUNT_A},1,Devstate(141,2)
exten => ${ACCOUNT_A},2,Dial(SIP/21)
...
exten => h,1,Devstate(141,0)
exten => h,2,Hangup
on the Snom 190: Functionkey 1 - destination - [EMAIL PROTECTED]
in asteriskdb: database put DEVSTATES 141 0
The database value changes on an incoming call, but i get no leds lighted.
Sip log:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.100.231:2060;branch=z9hG4bK-kwu8eayxe3qg;received= 192.168.100.231
;rport=2060
From: <sip:[EMAIL PROTECTED] <sip:[EMAIL PROTECTED]>>;tag=ho8i2el01x
To: < sip:[EMAIL PROTECTED] <sip:[EMAIL PROTECTED]>
;user=phone>;tag=as70240b9f
Call-ID: [EMAIL PROTECTED]
CSeq: 29 SUBSCRIBE
User-Agent: Buero Hauer PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
WWW-Authenticate: Digest algorithm=MD5,
realm="asterisk-server<http://naar.hauer-wien.at/>
",
nonce="094bd9b6"
Content-Length: 0
I know that this is not the best solution, because when i got 2 calls from
one Sip-account my leds would light
not as they should. But, is there another way to do this?
christian gansberger
--
... Do you know what this is? Neither do I, I made it last night in my
sleep, but I put a button on it ... (Goon)
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users