[asterisk-users] SMS in landline

Tiago Geada tiago.geada at gmail.com
Tue Jun 22 16:55:10 CDT 2010


Hi all.

I am searching for a way to send SMS via our E1 PRI line.

We are in Portugal and I have seen some Internet/TV/Phone providers (ZON for
those who know it) who install normal phones with SMS support in landline.

So I just found a page from PT (Portugal Telecom) stating that the SMC
number is either 12999 or 129990 (
http://www.ptcom.pt/PTResidencial2/Tabs/MyPTPublico/Apoio_a_Clientes/Servi%C3%A7os/SMS/caracteristicas/sms_caracteristicas.htm
)

Now I was trying to send a SMS via a PRI from PT (same provider)

context of dialplan is services

[root at asterisk ~]# tail /etc/asterisk/extensions_services.ael -n 12
	_00019XXXXXXXX => {     // TEST SMS
		Noop(Testing SMS to ${EXTEN:4}...);
		Answer();
		SMS(services,,00351932485457,bla);
		SMS(services);
		Hangup();
	//	129990
	}

///////////////////////////// FINISHED TESTING /////////////////////////////////

}
 [root at asterisk ~]# cat test.call
Channel: DAHDI/g7/12999
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Context: services
Extension: 0001932485457
Priority: 1
SetVar: MSG=hello


cp test.call /var/spool/asterisk/outgoing/ && chown asterisk.asterisk
/var/spool/asterisk/outgoing/test.call && chmod 777
/var/spool/asterisk/outgoing/test.call && asterisk -vvvvvvr

Asterisk 1.6.2.9-rc2, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty'
for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf':   == Found
  == Parsing '/etc/asterisk/extconfig.conf':   == Found
Connected to Asterisk 1.6.2.9-rc2 currently running on asterisk (pid = 12521)
Verbosity is at least 14
    -- Attempting call on DAHDI/g7/12999 for 0001932485457 at services:1 (Retry 1)
-- Making new call for cr 32792
    -- Requested transfer capability: 0x00 - SPEECH
> Protocol Discriminator: Q.931 (8)  len=28
> Call Ref: len= 2 (reference 24/0x18) (Originator)
> Message type: SETUP (5)
> [04 03 80 90 a3]
> Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: Speech (0)
>                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
>                                User information layer 1: A-Law (35)
> [18 03 a1 83 81]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Preferred  Dchan: 0
>                        ChanSel: As indicated in following octets
>                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
>                       Ext: 1  Channel: 1 ]
> [6c 02 21 80]
> Calling Number (len= 4) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
>                           Presentation: Presentation permitted, user number not screened (0)  '' ]
> [70 06 a1 31 32 39 39 39]
> Called Number (len= 8) [ Ext: 1  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '12999' ]
> [a1]
> Sending Complete (len= 1)
q931.c:3134 q931_setup: call 32792 on channel 1 enters state 1 (Call Initiated)
< Protocol Discriminator: Q.931 (8)  len=32
< Call Ref: len= 2 (reference 24/0x18) (Terminator)
< Message type: CALL PROCEEDING (2)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0
Exclusive  Dchan: 0
<                        ChanSel: As indicated in following octets
<                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
<                       Ext: 1  Channel: 1 ]
< [28 14 43 48 41 4d 41 44 41 20 45 4d 20 50 52 4f 47 52 45 53 53 4f]
< Display (len=20) [ CHAMADA EM PROGRESSO ]
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 40 (cs0, Display)
q931.c:3683 q931_receive: call 32792 on channel 1 enters state 3
(Outgoing call  Proceeding)
< Protocol Discriminator: Q.931 (8)  len=52
< Call Ref: len= 2 (reference 24/0x18) (Terminator)
< Message type: DISCONNECT (69)
< [08 02 84 9c]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0
Location: Public network serving the remote user (4)
<                  Ext: 1  Cause: Invalid number format (28), class =
Normal Event (1) ]
< [1c 17 91 a1 14 02 01 2e 02 01 24 30 0c 30 0a a1 05 30 03 02 01 00 82 01 00]
< Facility (len=25, codeset=0) [ 0x91, 0xA1, 0x14, 0x02, 0x01, '.',
0x02, 0x01, '$0', 0x0C, '0', 0x0A, 0xA1, 0x05, '0', 0x03, 0x02, 0x01,
0x00, 0x82, 0x01, 0x00 ]
PROTOCOL 11
A1 0014 (CONTEXT SPECIFIC [1])
  02 0001 2E (INTEGER: 46)
  02 0001 24 (INTEGER: 36)
  30 000C (SEQUENCE)
    30 000A (SEQUENCE)
      A1 0005 (CONTEXT SPECIFIC [1])
        30 0003 (SEQUENCE)
          02 0001 00 (INTEGER: 0)
      82 0001 00 (CONTEXT SPECIFIC [2])
< [1e 02 82 88]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard
(0)  0: 0  Location: Public network serving the local user (2)
<                               Ext: 1  Progress Description: Inband
information or appropriate pattern now available. (8) ]
< [28 0c 49 4d 50 55 4c 53 4f 53 20 3d 20 30]
< Display (len=12) [ IMPULSOS = 0 ]
-- Processing IE 8 (cs0, Cause)
-- Processing IE 28 (cs0, Facility)
Handle Q.932 ROSE Invoke component
  [ Handling operation 36 ]
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 40 (cs0, Display)
q931.c:3826 q931_receive: call 32792 on channel 1 enters state 12
(Disconnect Indication)
    -- Channel 0/1, span 7 got hangup request, cause 28
    -- Channel 0/1, span 7 received AOC-E charging 0 units
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication,
peerstate Disconnect Request
q931.c:2967 q931_release: call 32792 on channel 1 enters state 19
(Release Request)
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 24/0x18) (Originator)
> Message type: RELEASE (77)
> [08 02 81 9c]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Private network serving the local user (1)
>                  Ext: 1  Cause: Invalid number format (28), class = Normal Event (1) ]
    -- Hungup 'DAHDI/187-1'
[Jun 22 22:50:04] NOTICE[11983]: pbx_spool.c:339 attempt_thread: Call
failed to go through, reason (1) Hangup
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 24/0x18) (Terminator)
< Message type: RELEASE COMPLETE (90)
q931.c:3766 q931_receive: call 32792 on channel 1 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100622/983979da/attachment-0001.htm 


More information about the asterisk-users mailing list