[asterisk-dev] direct_text_pjsip

DOCAS DUDU ZULU 2612638 at uwc.ac.za
Tue May 19 21:19:24 CDT 2009


hi
 
i want to send a message from one PJSIP client to another via asterisk
server, i have successfully registered my two users in sip.conf as
follows 

[sihle]
type=peer
username=sihle
authname=sihle
secret=pwdsihle
host=dynamic
context=tutorial

[thabile]
type=peer
username=thabile
authname=thabile
secret=pwdthabile
host=dynamic
context=tutorial

their corresponding extensions.conf

[tutorial]
 exten=> 4545,1,Dial(SIP/sihle)
 exten=> 8888,1,Dial(SIP/thabile)

now when i call another PJSIP client i say sip:8888 at 172.16.56.96 where
172.16.56.96 is the asterisk server URL and the two users willl be able
to communicate via asterisk but when i send text as follows
sip:8888 at 172.16.56.96 the message goes straight to the command line of
the asterisk not to the corresponding user with extension 8888,so how
can i direct the text to go to the destination address with extension
8888 via asterisk like it is possible with a voice call? I also tried
sending the message with sip:sihle at 172.16.56.96 but same results.
 
 This are the result from the asterisk command line

[May 20 03:59:14] WARNING[7131]: chan_sip.c:9915 receive_message:
Received message to <sip:thabile at 172.16.56.96> 
from <sip:sihle at 172.16.56.26>;tag=24c7aa20f67a43a0980bac3d63799b48,
dropped it...  
Content-Type:text/plain
Message: you are the best ever,keep up the good work
docas-desktop*CLI> 



this is how i registerd the two users from PJSIP command line with
asterisk server:

user1(sihle)
Your SIP URL: sip:sihle at 172.16.56.26(user 1 URL)
URL of the registrar:sip:172.16.56.96(Asterisk IP URL)
Auth Realm: asterisk
Auth Username:sihle
Auth Password:pwdsihle

user2(thabile)

Your SIP URL: sip:thabile at 172.16.56.77(user 2 URL)
URL of the registrar:sip:172.16.56.96(Asterisk IP URL)
Auth Realm :asterisk
Auth Username:thabile
Auth Password:pwdthabile

thanks 
docas



More information about the asterisk-dev mailing list