From: Anton R. <an...@gm...> - 2013-05-30 02:44:53
|
Hi, Since Asterisk 11 can process SIP MESSAGE, I thought I can just set SIP.Proxy.SMS to Asterisk 11 IP address. I then send an SMS from cellphone and I saw that OpenBTS pass the SIP MESSAGE to Asterisk 11. Here is what I got from Asterisk 11 sip debug: ===== BEGIN ===== <--- SIP read from UDP:192.168.2.48:5062 ---> MESSAGE sip:smsc@192.168.2.8 SIP/2.0 Via: SIP/2.0/UDP 192.168.2.48:5062;branch=z9hG4bKobts2834c96aa045ff713 From: IMSI510101225270085 <sip:IMSI510101225270085@192.168.2.8>;tag=tphvjdjdikztrftb To: smsc <sip:smsc@192.168.2.8> Call-ID: 1016676673@192.168.2.48 CSeq: 496 MESSAGE Content-Type: text/plain User-Agent: OpenBTS P2.8TRUNK Build Date May 29 2013 Max-Forwards: 5 P-Access-Network-Info: 3GPP-GERAN; cgi-3gpp=0010103e8000a P-Preferred-Identity: <sip:IMSI510101225270085@192.168.2.8:5060> Content-Length: 12 Test sms nih <-------------> --- (12 headers 1 lines) --- Receiving message! Found peer 'OpenBTS' for 'IMSI510101225270085' from 192.168.2.48:5062 Looking for smsc in OpenBTS (domain 192.168.2.8) <--- Transmitting (no NAT) to 192.168.2.48:5062 ---> SIP/2.0 202 Accepted Via: SIP/2.0/UDP 192.168.2.48:5062;branch=z9hG4bKobts2834c96aa045ff713;received=192.168.2.48 From: IMSI510101225270085 <sip:IMSI510101225270085@192.168.2.8>;tag=tphvjdjdikztrftb To: smsc <sip:smsc@192.168.2.8>;tag=as26b01ce4 Call-ID: 1016676673@192.168.2.48 CSeq: 496 MESSAGE Server: BrikerIPPBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Length: 0 ===== END ===== As you can see the "To" part of SIP MESSAGE is "smsc <sip:smsc@192.168.2.8>", while I thought it will be a destination phone number. I'm using OpenBTS 2.6 with USRP1 (gnuradio 3.4.2). My installation steps as follows: http://voiprakyat.or.id/pub/openbts/install.txt My full SIP debug is here: http://voiprakyat.or.id/pub/openbts/sip_debug.txt The question would be, how to get OpenBTS send SMS destination number as field "To" in SIP MESSAGE to Asterisk 11. Thanks, Anton Raharja http://www.antonraharja.web.id |