retrieve extension from incoming call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
   I am writing some code using the pjsua user agent as reference.

Now, when I call an extension from my client, I use the extension number:
 sip:6011@192.168.0.3
when I receive a call from the same extension, and use the pjsua_call_get_info(..), the remote_info shows the id:
 sip:pc1@192.168.0.3

Obviously, in the asterisk extensions.conf pc1 is mapped to 6011
 exten=>6011,1,Dial(SIP/pc1,20)

I wonder how can I retrieve the extension number (6011 for instance) from an incoming call (for instance sip:pc1@192.168.0.1).

Thank you.



 



_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux