Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Sending SIP calls via outbound proxy


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
erick at junctionnetwo...
Guest





PostPosted: Tue Dec 09, 2008 9:29 am    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

Hi There,

I'm trying to get freeswitch to originate all SIP calls through
an outbound proxy. When I use the originate API command to create a call
to a telephone number I see the SIP packets getting to my proxy just fine.
However if I originate a call to a SIP address then proxy server is
bypassed,
instead FS is directly messaging the addressee.

Here is the command that I'm trying to use that behaves unexpectedly:
originate sofia/gateway/proxy/alice@bar.com &echo()

However this command produces the results I'm expecting:
originate sofia/gateway/proxy/15551234 &echo()

Here is the result of my sofia status:

freeswitch> sofia status
API CALL [sofia(status)] output:
Name Type
Data State
=================================================================================================
external profile
sip:mod_sofia@X.X.X.X:5070 RUNNING (0)
proxy gateway
sip:ejjohnson_ippx@ejjohnson.org NOREG
=================================================================================================
1 profile 0 aliases

I have also tried setting the sip_invite_domain channel var through the {}

Could you let me know what I'm doing wrong?

Much appreciated,

Erick J


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Dec 09, 2008 9:34 am    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

First example is WRONG you don't dial via a gateway that way. If you wish to dial alice@bar.com (alice@bar.com) then try sofia/internal/alice@bar.com ([email]sofia/internal/alice@bar.com[/email]) as you don't require a gateway to call alice right?

/b

On Dec 8, 2008, at 7:14 PM, Erick Johnson wrote:
Quote:
Here is the command that I'm trying to use that behaves unexpectedly:
originate sofia/gateway/proxy/alice@bar.com ([email]sofia/gateway/proxy/alice@bar.com[/email]) &echo()

However this command produces the results I'm expecting:
originate sofia/gateway/proxy/15551234 &echo()
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Dec 09, 2008 1:25 pm    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

Can you clarify why you need a gateway? Is the far side going to challenge us and request authentication credentials?

So you want us to not resolve the domain of the target at all in any way? That kinda breaks the rules because you should always check the NAPTR's and SRV and resolve to the target in that manner its a requirement. If you want to force things to a proxy and let the proxy on the far side do the work then you do this:


sofia/profile/alice@bar.com ([email]sofia/profile/alice@bar.com[/email]);fs_path=proxy.foo.com


/b





On Dec 9, 2008, at 12:06 PM, Erick Johnson wrote:
Quote:
Hi Brian,

Thanks for the reply, but I still don't think that answers my original
question. I'm trying to get FS to act simply as a UAC in this
instance, what I want is for FS to proxy ALL outbound calls through my
proxy server at foo.com.

So when FS originates a call to alice@bar.com (alice@bar.com) I want the signaling path
to be set up as:

FreeSwitch ---> proxy.foo.com ---> alice@bar.com (alice@bar.com)

I found this thread:
http://lists.freeswitch.org/pipermail/freeswitch-users/2008-November/008582.html
but I still can't seem to get FS to stop resolving domain bar.com on
it's own, even when I set the
sip_invite_domain variable like so:
originate
{sip_invite_domain='proxy.foo.com'}sofia/external/alice@bar.com ([email]{sip_invite_domain=\'proxy.foo.com\'}sofia/external/alice@bar.com[/email]) &echo()

That is how I ended up using the "originate
sofia/gateway/proxy/alice@bar.com ([email]sofia/gateway/proxy/alice@bar.com[/email]) &echo()" command.
While I understand that's wrong, I don't know what the right config/cmd
is to accomplish my task.

Any other help is much appreciated.

Thanks,

Erick
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Dec 09, 2008 2:25 pm    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

I think you need to '' the sofia uri

/b

On Dec 9, 2008, at 1:11 PM, Erick Johnson wrote:

Quote:
Looking at the logs the reason as to why it's been termintated isn't
cleear
to me. Any thoughts?


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
msc at freeswitch.org
Guest





PostPosted: Tue Dec 09, 2008 3:01 pm    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

What SVN rev are you running? Also, could you do a SIP trace?
TPORT_LOG=1 && /usr/local/freeswitch/bin/freeswitch
Pastebin the output of that and we'll take it from there.
-MC

On Tue, Dec 9, 2008 at 11:41 AM, Erick Johnson
<erick@junctionnetworks.com> wrote:
Quote:
Both:

originate sofia/external/'erick@ejjohnson.org;fs_path=proxybeta.foo.net'
&echo()
originate sofia/external/erick@ejjohnson.org;fs_path=proxybeta.foo.net
&echo()

produce the exact same result & log

Sad

Quote:
* I think you need to '' the sofia uri /b


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Dec 09, 2008 3:21 pm    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

originate 'sofia/internal/brian@bkw.org;fs_path=bob.com' &echo()

/b

On Dec 9, 2008, at 1:52 PM, Michael Collins wrote:

Quote:
What SVN rev are you running? Also, could you do a SIP trace?
TPORT_LOG=1 && /usr/local/freeswitch/bin/freeswitch
Pastebin the output of that and we'll take it from there.
-MC

On Tue, Dec 9, 2008 at 11:41 AM, Erick Johnson
<erick@junctionnetworks.com> wrote:
Quote:
Both:

originate sofia/
external/'erick@ejjohnson.org;fs_path=proxybeta.foo.net'
&echo()
originate sofia/external/
erick@ejjohnson.org;fs_path=proxybeta.foo.net
&echo()

produce the exact same result & log

Sad

Quote:
* I think you need to '' the sofia uri /b


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
erick at junctionnetwo...
Guest





PostPosted: Tue Dec 09, 2008 3:58 pm    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

I'm running latest trunk - Revision: 10682

I've been doing an ngrep on my external freeswitch SIP port and FS
is not sending any SIP packets anywhere when I run the following command.
Bumping up TPORT_LOG to 9 also confirms this, as no SIP packets are logged.

originate
'sofia/external/erick@ejjohnson.org;fs_path=proxybeta.jnctn.net' &echo()

Also, just to be clear, when I remove ";fs_path=..." from the command
above a call
is set up normally to erick@ejjohnson.org and the SIP packets are logged
to console.

Thanks guys.

Quote:
What SVN rev are you running? Also, could you do a SIP trace?
TPORT_LOG=1 && /usr/local/freeswitch/bin/freeswitch
Pastebin the output of that and we'll take it from there.
-MC

On Tue, Dec 9, 2008 at 11:41 AM, Erick Johnson
<erick at junctionnetworks.com> wrote:
Quote:
Both:

originate sofia/external/'erick at
ejjohnson.org;fs_path=proxybeta.foo.net'
Quote:
&echo()
originate sofia/external/erick at
ejjohnson.org;fs_path=proxybeta.foo.net
Quote:
&echo()

produce the exact same result & log

Sad

Quote:
* I think you need to '' the sofia uri /b




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
dave at 3c.co.uk
Guest





PostPosted: Wed Dec 10, 2008 12:28 am    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

Hi Erick,

Not sure if you've tried this (or if it'll help), but you can force routing in the dialplan like so:
<action application="set" data="sip_h_Route=[url=sip:@11.22.33.44;lr]<sip:@11.22.33.44;lr>[/url]" />
<action application="bridge" data="sofia/gateway/gw/$1"/>

Cheers --

Dave


Quote:
Quote:
i forgot to give you the pastebin URL
http://pastebin.freeswitch.org/6379

Quote:
I'm running latest trunk - Revision: 10682

I've been doing an ngrep on my external freeswitch SIP port and FS
is not sending any SIP packets anywhere when I run the following command.
Bumping up TPORT_LOG to 9 also confirms this, as no SIP packets are
logged.

originate
'sofia/external/erick at ejjohnson.org;fs_path=proxybeta.jnctn.net'
&echo()

Also, just to be clear, when I remove ";fs_path=..." from the command
above a call
is set up normally to erick at ejjohnson.org and the SIP packets are
logged
to console.

Thanks guys.

Quote:
What SVN rev are you running? Also, could you do a SIP trace?
TPORT_LOG=1 && /usr/local/freeswitch/bin/freeswitch
Pastebin the output of that and we'll take it from there.
-MC

On Tue, Dec 9, 2008 at 11:41 AM, Erick Johnson
<erick at junctionnetworks.com> wrote:
Quote:
Both:

originate sofia/external/'erick at
ejjohnson.org;fs_path=proxybeta.foo.net'
Quote:
&echo()
originate sofia/external/erick at
ejjohnson.org;fs_path=proxybeta.foo.net
Quote:
&echo()

produce the exact same result & log

Sad

Quote:
* I think you need to '' the sofia uri /b

I'm running latest trunk - Revision: 10682

I've been doing an ngrep on my external freeswitch SIP port and FS
is not sending any SIP packets anywhere when I run the following command.
Bumping up TPORT_LOG to 9 also confirms this, as no SIP packets are
logged.

originate
'sofia/external/erick at ejjohnson.org;fs_path=proxybeta.jnctn.net'
&echo()

Also, just to be clear, when I remove ";fs_path=..." from the command
above a call
is set up normally to erick at ejjohnson.org and the SIP packets are
logged
to console.

Thanks guys.

0 I'm running latest trunk - Revision: 10682

I've been doing an ngrep on my external freeswitch SIP port and FS
is not sending any SIP packets anywhere when I run the following command.
Bumping up TPORT_LOG to 9 also confirms this, as no SIP packets are
logged.

originate
'sofia/external/erick at ejjohnson.org;fs_path=proxybeta.jnctn.net'
&echo()

Also, just to be clear, when I remove ";fs_path=..." from the command
above a call
is set up normally to erick at ejjohnson.org and the SIP packets are
logged
to console.

Thanks guys.

1 I'm running latest trunk - Revision: 10682

I've been doing an ngrep on my external freeswitch SIP port and FS
is not sending any SIP packets anywhere when I run the following command.
Bumping up TPORT_LOG to 9 also confirms this, as no SIP packets are
logged.

originate
'sofia/external/erick at ejjohnson.org;fs_path=proxybeta.jnctn.net'
&echo()

Also, just to be clear, when I remove ";fs_path=..." from the command
above a call
is set up normally to erick at ejjohnson.org and the SIP packets are
logged
to console.

Thanks guys.

2
Back to top
erick at junctionnetwo...
Guest





PostPosted: Thu Dec 11, 2008 3:54 pm    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

Thanks Dave,

Actually I realized my problem (stupid mistake of course). For anyone else
trying to use the fs_path variable the value needs to be a fully
qualified SIP
URI, e.g. "bob@bar.com;fs_path=sip:host.domain.net", notice it being
prefaced
with the "sip:", my problem was that I was only entering
the host name. Then somewhere down in mod_sofia it must have decided that
it didn't like that and just closed the channel.

Hope this helps somebody who gets stuck like I did.

Cheers,

Erick

Quote:
Hi Erick,

Not sure if you've tried this (or if it'll help), but you can force
routing in the dialplan like so:
<action application="set" data="sip_h_Route=<sip:@11.22.33.44;lr>" />
<action application="bridge" data="sofia/gateway/gw/$1"/>

Cheers --

Dave


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
msc at freeswitch.org
Guest





PostPosted: Thu Dec 11, 2008 4:24 pm    Post subject: [Freeswitch-users] Sending SIP calls via outbound proxy Reply with quote

On Thu, Dec 11, 2008 at 12:52 PM, Erick Johnson
<erick@junctionnetworks.com> wrote:
Quote:
Thanks Dave,

Actually I realized my problem (stupid mistake of course). For anyone else
trying to use the fs_path variable the value needs to be a fully
qualified SIP
URI, e.g. "bob@bar.com;fs_path=sip:host.domain.net", notice it being
prefaced
with the "sip:", my problem was that I was only entering
the host name. Then somewhere down in mod_sofia it must have decided that
it didn't like that and just closed the channel.

Erick, thanks for the clarification! I'll get it put on the wiki right away.
-MC

Quote:

Hope this helps somebody who gets stuck like I did.

Cheers,

Erick

Quote:
Hi Erick,

Not sure if you've tried this (or if it'll help), but you can force
routing in the dialplan like so:
<action application="set" data="sip_h_Route=<sip:@11.22.33.44;lr>" />
<action application="bridge" data="sofia/gateway/gw/$1"/>

Cheers --

Dave


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services