[SIP Beyond VoIP] No notification for incoming INVITE

Saúl Ibarra Corretgé saul at ag-projects.com
Thu Jul 10 14:33:31 CEST 2014


Hi,

On 08 Jul 2014, at 18:01, Yufei Tao <yufei.tao at gmail.com> wrote:

> Hi
> 
> I'm trying to use Python SIPSimple to test my SIP server. Got stuck trying to receive incoming INVITE: I got an account registered and Invitation object created, observer added. The incoming INVITE is sent to the port SIPSimple used to successfully REGISTER with a SIP server. But on incoming INVITE, no notifications were seen in the handle_notification() function. It did send an 100 Trying though.
> 
> The Invitation object's observer should be fine as when using the same script to send outgoing INVITE, notifications do appear in the handle_notification() function. Just not for incoming INVITE.
> 
> I must have missed something. Are there any example python scripts to receive incoming requests? Any way to turn on some debug messages in SIPSimple?
> 

In order to receive incoming sessions you need to add an observer for SIPSessionNewIncoming, but you don’t know the sender, so just add the observer by name.

You can see examples in our sip clients package, sip-session is a complete SIP UA for the command line.


Regards,

--
Saúl Ibarra Corretgé
AG Projects



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20140710/3edd3a53/attachment.pgp>


More information about the SIPBeyondVoIP mailing list