res_pjsip_messaging: Refactor outgoing URI processing

* Implemented the new "to" parameter of the MessageSend()
   dialplan application.  This allows a user to specify
   a complete SIP "To" header separate from the Request URI.

 * Completely refactored the get_outbound_endpoint() function
   to actually handle all the destination combinations that
   we advertized as supporting.

 * We now also accept a destination in the same format
   as Dial()...  PJSIP/number@endpoint

 * Added lots of debugging.

ASTERISK-29404
Reported by Brian J. Murrell

Change-Id: I67a485196d9199916468f7f98bfb9a0b993a4cce
This commit is contained in:
George Joseph 2021-04-22 12:07:22 -06:00
parent 8236f2f155
commit 6cd89c4f0a
2 changed files with 740 additions and 101 deletions

View File

@ -0,0 +1,7 @@
Subject: res_pjsip_messaging
Implemented the new "to" parameter of the MessageSend()
dialplan application. This allows a user to specify
a complete SIP "To" header separate from the Request URI.
We now also accept a destination in the same format
as Dial()... PJSIP/number@endpoint

File diff suppressed because it is too large Load Diff