On Tue, Aug 22, 2017 at 02:50:13PM +0200, Cyrille Demaret wrote:
> If I use this dial string in my Asterisk dialplan "PJSIP/ kamailio
> /sip:[email protected]", Asterisk contact directly testcomain.com without
> going through the local IP of my Kamailio.
> 
> I can't send a domain to Kamailio in the INVITE request.
> 
> Does anyone can help me on this or maybe simply tell me that I'm not going
> to the good direction? :)

Take a look at outbound_proxy for pjsip
https://wiki.asterisk.org/wiki/display/AST/PJSIP+with+Proxies

With chan_sip you could do this dynamically from the dialplan:
; A new feature for 1.8 allows one to specify a host or IP address to use
; when routing the call. This is typically used in tandem with func_srv if
; multiple methods of reaching the same domain exist. The host or IP address
; is specified after the third slash in the dialstring. Examples:
;
; SIP/devicename/extension/IPorHost
; SIP/username@domain//IPorHost


_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to