Search code examples
javasiptelephonyjain-sip

sip: to dial additional number after 200 ok


I want to implement the following scenario with the help of SIP protocol:

  • I call to the number 12345678990
  • the phone is picked up (--> 200 ok is received and ACK is sent back)
  • I dial a number extension 23456#

I have already implemented the first part and second parts in jain. How can I realize the third one?

What I tried:

  • I set the telURL attribute postDial as 23456# but in this case I couldn't get through proxy-authorization and makee a call

  • I tired to write both parts as one number with delimeters * and # and without delimeter att all.

What can I also do?

UPD: I discovered that

  • problem occures because of the sambol #

  • with symbol # the proxy auth. responce is sent but isn't processed. at least I don't see a log message that pocessResponce() method is working.


Solution

  • For these purposes I just used SIP INFO messages: each single message for one symbol of "23456#"-string.