Colin Anderson
2006-Mar-09 20:32 UTC
[Asterisk-Users] OT: Snom 320, displaying text on the scree n from *
try "sipsak -M -O desktop -B "foo" -s sip:<user>@<registrar> -H <ip of registrar>" the trick is to specify the "-O desktop" parameter + the "-H <ip of registrar>" parameter. Sipsak fakes the host-header of the registrar so that the Snom thinks it is coming from your Asterisk server, then lets the message through to the "desktop" (the display of the phone) I wasn't kidding about obscure syntax, sipsak is a PITA -----Original Message----- From: Sean Kennedy [mailto:skennedy@qualitydentists.com] Sent: Thursday, March 09, 2006 5:01 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] OT: Snom 320, displaying text on the screen from * I have that set, but for some reason I get errors when I try sipsak, and nothing comes through to the phone: sipsak -M -B "test" -s sip:44@192.168.1.67 <sip:44@192.168.1.67> timeout after 500ms timeout after 500ms... Some debugging info: [root@firewall root]# sipsak -vvv -M -B "test" -s sip:44@192.168.1.67 <sip:44@192.168.1.67> warning: ignoring -i option when in usrloc mode fqdnhostname: 192.168.1.1 our Via-Line: Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias New message with Via-Line: MESSAGE sip:44@192.168.1.67 <sip:44@192.168.1.67> SIP/2.0 Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias To: sip:44@192.168.1.67 <sip:44@192.168.1.67> Call-ID: 2089538687@192.168.1.1 <mailto:2089538687@192.168.1.1> CSeq: 1 MESSAGE Content-Type: text/plain Max-Forwards: 70 User-Agent: sipsak 0.9.5 From: sip:sipsak@192.168.1.1:34213;tag=7c8bd47f <sip:sipsak@192.168.1.1:34213;tag=7c8bd47f> Content-Length: 4 test sending message ... request: MESSAGE sip:44@192.168.1.67 <sip:44@192.168.1.67> SIP/2.0 Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias To: sip:44@192.168.1.67 <sip:44@192.168.1.67> Call-ID: 2089538687@192.168.1.1 <mailto:2089538687@192.168.1.1> CSeq: 1 MESSAGE Content-Type: text/plain Max-Forwards: 70 User-Agent: sipsak 0.9.5 From: sip:sipsak@192.168.1.1:34213;tag=7c8bd47f <sip:sipsak@192.168.1.1:34213;tag=7c8bd47f> Content-Length: 4 test send to: UDP:192.168.1.67:5060 : ignoring MESSAGE retransmission timeout after 500 ms So I am at a bit of a loss. Thanks for your help though, I apprecaite it. :) Colin Anderson wrote: Trick with Sipsak is you have to change the network port to 5060 or sipsak messages never hit the right port. In the web interface, Advaced > Avanced Network > Network identity (port): change that to 5060 and you should be good assuming you can figure out sipsak's nasty syntax. hth. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060309/50d338a1/attachment.htm
Dofear
2006-Mar-09 20:37 UTC
[Asterisk-Users] OT: Snom 320, displaying text on the screen from *
Can this feature be used to display total balance left (for a phone) on the display of the phone? _____ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Colin Anderson Sent: Friday, March 10, 2006 2:33 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] OT: Snom 320, displaying text on the screen from * try "sipsak -M -O desktop -B "foo" -s sip:<user>@<registrar> -H <ip of registrar>" the trick is to specify the "-O desktop" parameter + the "-H <ip of registrar>" parameter. Sipsak fakes the host-header of the registrar so that the Snom thinks it is coming from your Asterisk server, then lets the message through to the "desktop" (the display of the phone) I wasn't kidding about obscure syntax, sipsak is a PITA -----Original Message----- From: Sean Kennedy [mailto:skennedy@qualitydentists.com] Sent: Thursday, March 09, 2006 5:01 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] OT: Snom 320, displaying text on the screen from * I have that set, but for some reason I get errors when I try sipsak, and nothing comes through to the phone: sipsak -M -B "test" -s sip:44@192.168.1.67 timeout after 500ms timeout after 500ms... Some debugging info: [root@firewall root]# sipsak -vvv -M -B "test" -s sip:44@192.168.1.67 warning: ignoring -i option when in usrloc mode fqdnhostname: 192.168.1.1 our Via-Line: Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias New message with Via-Line: MESSAGE sip:44@192.168.1.67 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias To: sip:44@192.168.1.67 Call-ID: 2089538687@192.168.1.1 CSeq: 1 MESSAGE Content-Type: text/plain Max-Forwards: 70 User-Agent: sipsak 0.9.5 From: sip:sipsak@192.168.1.1:34213;tag=7c8bd47f Content-Length: 4 test sending message ... request: MESSAGE sip:44@192.168.1.67 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias To: sip:44@192.168.1.67 Call-ID: 2089538687@192.168.1.1 CSeq: 1 MESSAGE Content-Type: text/plain Max-Forwards: 70 User-Agent: sipsak 0.9.5 From: sip:sipsak@192.168.1.1:34213;tag=7c8bd47f Content-Length: 4 test send to: UDP:192.168.1.67:5060 : ignoring MESSAGE retransmission timeout after 500 ms So I am at a bit of a loss. Thanks for your help though, I apprecaite it. :) Colin Anderson wrote: Trick with Sipsak is you have to change the network port to 5060 or sipsak messages never hit the right port. In the web interface, Advaced > Avanced Network > Network identity (port): change that to 5060 and you should be good assuming you can figure out sipsak's nasty syntax. hth. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060309/0399202c/attachment.htm
Colin Anderson
2006-Mar-09 20:49 UTC
[Asterisk-Users] OT: Snom 320, displaying text on the scree n from *
Any alpha characters can be sent to the display but no graphics or
animations or anything like that. It's fine for displaying a simple line of
unformatted text but that's about all. I'm playing with the XMLObjects
feature of Firmware 5.X on the 360 which shows promise for displaying more
complex stuff. There's a big screen on the 360 but not much use for it
unless you have 5.X firmware + XMLObjects.
Something like this would probably work:
exten => s,1,DBGet(CURRENTBALANCE=balances/user1234)
exten => s,2,System(sipsak -M -O desktop -B "Balance is:
${CURRENTBALANCE}"
-s sip:${EXTEN}@192.168.1.20 -H 192.168.1.20)
-----Original Message-----
From: Dofear [mailto:dofear@kaiets.com]
Sent: Thursday, March 09, 2006 8:38 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] OT: Snom 320, displaying text on the screen
from *
Can this feature be used to display total balance left (for a phone) on the
display of the phone?
_____
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Colin Anderson
Sent: Friday, March 10, 2006 2:33 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] OT: Snom 320, displaying text on the screen
from *
try "sipsak -M -O desktop -B "foo" -s
sip:<user>@<registrar> -H <ip of
registrar>"
the trick is to specify the "-O desktop" parameter + the "-H
<ip of
registrar>" parameter. Sipsak fakes the host-header of the registrar so
that
the Snom thinks it is coming from your Asterisk server, then lets the
message through to the "desktop" (the display of the phone)
I wasn't kidding about obscure syntax, sipsak is a PITA
-----Original Message-----
From: Sean Kennedy [mailto:skennedy@qualitydentists.com]
Sent: Thursday, March 09, 2006 5:01 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] OT: Snom 320, displaying text on the screen
from *
I have that set, but for some reason I get errors when I try sipsak, and
nothing comes through to the phone:
sipsak -M -B "test" -s sip:44@192.168.1.67 <sip:44@192.168.1.67>
timeout after 500ms
timeout after 500ms...
Some debugging info:
[root@firewall root]# sipsak -vvv -M -B "test" -s sip:44@192.168.1.67
<sip:44@192.168.1.67>
warning: ignoring -i option when in usrloc mode
fqdnhostname: 192.168.1.1
our Via-Line: Via: SIP/2.0/UDP
192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias
New message with Via-Line:
MESSAGE sip:44@192.168.1.67 <sip:44@192.168.1.67> SIP/2.0
Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias
To: sip:44@192.168.1.67 <sip:44@192.168.1.67>
Call-ID: 2089538687@192.168.1.1 <mailto:2089538687@192.168.1.1>
CSeq: 1 MESSAGE
Content-Type: text/plain
Max-Forwards: 70
User-Agent: sipsak 0.9.5
From: sip:sipsak@192.168.1.1:34213;tag=7c8bd47f
<sip:sipsak@192.168.1.1:34213;tag=7c8bd47f>
Content-Length: 4
test
sending message ...
request:
MESSAGE sip:44@192.168.1.67 <sip:44@192.168.1.67> SIP/2.0
Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias
To: sip:44@192.168.1.67 <sip:44@192.168.1.67>
Call-ID: 2089538687@192.168.1.1 <mailto:2089538687@192.168.1.1>
CSeq: 1 MESSAGE
Content-Type: text/plain
Max-Forwards: 70
User-Agent: sipsak 0.9.5
From: sip:sipsak@192.168.1.1:34213;tag=7c8bd47f
<sip:sipsak@192.168.1.1:34213;tag=7c8bd47f>
Content-Length: 4
test
send to: UDP:192.168.1.67:5060
:
ignoring MESSAGE retransmission
timeout after 500 ms
So I am at a bit of a loss.
Thanks for your help though, I apprecaite it. :)
Colin Anderson wrote:
Trick with Sipsak is you have to change the network port to 5060 or sipsak
messages never hit the right port. In the web interface, Advaced > Avanced
Network > Network identity (port): change that to 5060 and you should be
good assuming you can figure out sipsak's nasty syntax. hth.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060309/ba40e419/attachment.htm
Harald Holzer
2006-Mar-10 03:46 UTC
[Asterisk-Users] OT: Snom 320, displaying text on the scree n from *
you can use the attached patch, to avoid the use of sipsak. try the following lines in your extensions.conf: exten => 99,1,Answer() exten => 99,2,Set(_CONTENT-DISPOSITION=desktop) exten => 99,3,SendText(Testmessage) the patch is for asterisk 1.2.1 but should work on newer versions. let me know if it is working for you. regards Harald Holzer> try "sipsak -M -O desktop -B "foo" -s sip:<user>@<registrar> -H <ip of > registrar>" > > the trick is to specify the "-O desktop" parameter + the "-H <ip of > registrar>" parameter. Sipsak fakes the host-header of the registrar so that > the Snom thinks it is coming from your Asterisk server, then lets the > message through to the "desktop" (the display of the phone) > > I wasn't kidding about obscure syntax, sipsak is a PITA > > -----Original Message----- > From: Sean Kennedy [mailto:skennedy@qualitydentists.com] > Sent: Thursday, March 09, 2006 5:01 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] OT: Snom 320, displaying text on the screen > from * > > > I have that set, but for some reason I get errors when I try sipsak, and > nothing comes through to the phone: > > > > sipsak -M -B "test" -s sip:44@192.168.1.67 <sip:44@192.168.1.67> > timeout after 500ms > timeout after 500ms... > > > Some debugging info: > > > [root@firewall root]# sipsak -vvv -M -B "test" -s sip:44@192.168.1.67 > <sip:44@192.168.1.67> > warning: ignoring -i option when in usrloc mode > fqdnhostname: 192.168.1.1 > our Via-Line: Via: SIP/2.0/UDP > 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias > > New message with Via-Line: > MESSAGE sip:44@192.168.1.67 <sip:44@192.168.1.67> SIP/2.0 > Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias > To: sip:44@192.168.1.67 <sip:44@192.168.1.67> > Call-ID: 2089538687@192.168.1.1 <mailto:2089538687@192.168.1.1> > CSeq: 1 MESSAGE > Content-Type: text/plain > Max-Forwards: 70 > User-Agent: sipsak 0.9.5 > From: sip:sipsak@192.168.1.1:34213;tag=7c8bd47f > <sip:sipsak@192.168.1.1:34213;tag=7c8bd47f> > Content-Length: 4 > > test > sending message ... > > request: > MESSAGE sip:44@192.168.1.67 <sip:44@192.168.1.67> SIP/2.0 > Via: SIP/2.0/UDP 192.168.1.1:34213;branch=z9hG4bK.105fb86e;rport;alias > To: sip:44@192.168.1.67 <sip:44@192.168.1.67> > Call-ID: 2089538687@192.168.1.1 <mailto:2089538687@192.168.1.1> > CSeq: 1 MESSAGE > Content-Type: text/plain > Max-Forwards: 70 > User-Agent: sipsak 0.9.5 > From: sip:sipsak@192.168.1.1:34213;tag=7c8bd47f > <sip:sipsak@192.168.1.1:34213;tag=7c8bd47f> > Content-Length: 4 > > test > send to: UDP:192.168.1.67:5060 > : > ignoring MESSAGE retransmission > timeout after 500 ms > > > So I am at a bit of a loss. > > Thanks for your help though, I apprecaite it. :) > > Colin Anderson wrote: > > > Trick with Sipsak is you have to change the network port to 5060 or sipsak > messages never hit the right port. In the web interface, Advaced > Avanced > Network > Network identity (port): change that to 5060 and you should be > good assuming you can figure out sipsak's nasty syntax. hth. > > > > > _______________________________________________ > --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 >-------------- next part -------------- A non-text attachment was scrubbed... Name: sip_text-contentdispo.diff Type: text/x-patch Size: 2179 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060310/4d7ba35a/sip_text-contentdispo.bin
Reasonably Related Threads
- OT: Snom 320, displaying text on the screen from *
- SipSak: Send SIP OPTION with password
- sipsak 200 for a user, but 404 for a different user...why?
- sipsak 200 for a user, but 404 for a different user...why?
- sipsak 200 for a user, but 404 for a different user...why?