drachtio / drachtio-fsmrf

Drachtio freeswitch-based media resource function -- http://davehorton.github.io/drachtio-fsmrf
MIT License
47 stars 26 forks source link

what is sip_h_X-esl-outbound var ? #49

Closed herbiel closed 3 years ago

herbiel commented 3 years ago

what is sip_h_X-esl-outbound var ?

davehorton commented 3 years ago

It is a custom SIP header that appears on the INVITE to fs, which is used to tell freeswitch where to make the outbound ESL socket connection to.

herbiel commented 3 years ago

so can i set it manually? i have run drachtio-server on 9022 port

davehorton commented 3 years ago

you are misunderstanding what it is used for. It is the ip and port that drachtio-fsmrf (within your node application) is listening on, which will be a randomly chosen available tcp port. There is rarely a need to change it

herbiel commented 3 years ago

can you share example for use sip_h_X-esl-outbound?

davehorton commented 3 years ago

This is all handled by drachtio-fsrmf. Its an under the covers kind of thing, so I am confused about what exactly you are looking for. Perhaps you could start by describing the actual problem you are having?

herbiel commented 3 years ago

i want to use softphone to reg on fs, and want to use google tts or google_transcribe on call

davehorton commented 3 years ago

when you say you want the softphone to register on the FS -- you specifically want freeswitch to handle the registrations?

If so, this library (drachtio-fsmrf) is irrelevant for your purpose and you should not use it. This library is intended for use only for scenarios where you want to treat freeswitch a big dumb media server, and you are handling registrations in your own node.js applications.

It sounds like you just need to use my open source tts plugins in freeswitch without drachtio

herbiel commented 3 years ago

Many do not use drachtio server, but I am not good at nodejs and hope to use your google module in other ways