[Freeswitch-users] setting up forward incoming calls to external gateway

Kamen sireeps at gmail.com
Mon May 16 03:16:31 MSD 2011


Hi there!

I still have that problem with pausing for 10 seconds when transferring an
outside incoming call back to another external number.  I would really
really appreciate anyone with FS knowledge having a peek at it.  I think I
am giving enough information here.  But if I am not, I am sure willing to
provide more. However, my gutt feeling tells me the solution is easy and
this is something silly I missed while configuring my FS.

SO, here it goes, more info on the problem.  I enabled debug info and here
is what I see:

2011-05-15 18:14:12.187500 [DEBUG] switch_core_state_machine.c:157
sofia/external/9051212121 at 218.165.240.142 Standard EXECUTE EXECUTE
sofia/external/9051212121 at 218.165.240.142 log(INFO dialing destination
number)
2011-05-15 18:14:12.203125 [INFO] mod_dptools.c:1183 dialing destination
number EXECUTE sofia/external/9051212121 at 218.165.240.142
bridge(sofia/gateway/mysipprovider/15191212121)
2011-05-15 18:14:12.203125 [NOTICE] switch_channel.c:812 New Channel
sofia/external/15191212121 [55ef3edb-82b7-44dd-b961-3f6c33a5bd5e]

So, new channel is created.  And it looks like it is dialing. Then it goes

2011-05-15 18:14:12.203125 [DEBUG] mod_sofia.c:4286
(sofia/external/15191212121) State Change CS_NEW -> CS_INIT
2011-05-15 18:14:12.203125 [DEBUG] switch_core_session.c:1116 Send signal
sofia/external/15191212121 [BREAK]
2011-05-15 18:14:12.203125 [DEBUG] switch_core_state_machine.c:320
(sofia/external/15191212121) Running State Change CS_INIT
2011-05-15 18:14:12.203125 [DEBUG] switch_core_state_machine.c:356
(sofia/external/15191212121) State INIT
2011-05-15 18:14:12.203125 [DEBUG] mod_sofia.c:84 sofia/external/15191212121
SOFIA INIT

An that was the last statement at the time of creating a channel.  It pauses
for 5 seconds and gives me:


2011-05-15 18:14:17.203125 [DEBUG] switch_nat.c:502 mapped public port 31306
protocol UDP to localport 31306


Well, ok, not sure why it needed 5 seconds for that.  And then it pauses for
another 5 seconds and eventually goes to the busy signal with the following
debug log.

2011-05-15 18:14:22.203125 [DEBUG] switch_nat.c:502 mapped public port 31307
protocol UDP to localport 31307
2011-05-15 18:14:22.203125 [DEBUG] mod_sofia.c:124
(sofia/external/15191212121)State Change CS_INIT -> CS_ROUTING
2011-05-15 18:14:22.203125 [DEBUG] switch_core_session.c:1116 Send signal
sofia/external/15191212121 [BREAK]
2011-05-15 18:14:22.203125 [DEBUG] switch_core_state_machine.c:356
(sofia/external/15191212121) State INIT going to sleep
2011-05-15 18:14:22.203125 [DEBUG] switch_core_state_machine.c:320
(sofia/external/15191212121) Running State Change CS_ROUTING
2011-05-15 18:14:22.203125 [DEBUG] switch_channel.c:1668
(sofia/external/15191212121) Callstate Change DOWN -> RINGING

hm... interesting.  Why does it go to RINGING after 10 seconds pause?  Thats
the main question.

2011-05-15 18:14:22.203125 [DEBUG] sofia.c:4744 Channel
sofia/external/15191212121 entering state [calling][0]
2011-05-15 18:14:22.203125 [DEBUG] switch_core_state_machine.c:359
(sofia/external/15191212121) State ROUTING
2011-05-15 18:14:22.203125 [DEBUG] mod_sofia.c:147
sofia/external/15191212121 SOFIA ROUTING
2011-05-15 18:14:22.203125 [DEBUG] switch_ivr_originate.c:66
(sofia/external/15191212121) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2011-05-15 18:14:22.203125 [DEBUG] switch_core_session.c:1116 Send signal
sofia/external/15191212121 [BREAK]
2011-05-15 18:14:22.203125 [DEBUG] switch_core_state_machine.c:359
(sofia/external/15191212121) State ROUTING going to sleep
2011-05-15 18:14:22.203125 [DEBUG] switch_core_state_machine.c:320
(sofia/external/15191212121) Running State Change CS_CONSUME_MEDIA
2011-05-15 18:14:22.203125 [DEBUG] switch_core_state_machine.c:378
(sofia/external/15191212121) State CONSUME_MEDIA
2011-05-15 18:14:22.203125 [DEBUG] switch_core_state_machine.c:378
(sofia/external/15191212121) State CONSUME_MEDIA going to sleep

So, this is briefly the debug trace.  I really hope anybody might tell me
what is going on in here.  Why sofia goes into that pause mode and tries to
ring after 10 seconds, after actually it is disconnected.  Most likely this
has to do with my config.  But I am being a total novice to FS have no idea
what possibly can go wrong.  

Thanks in advance.

Kamen

--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/setting-up-forward-incoming-calls-to-external-gateway-tp6363912p6366874.html
Sent from the freeswitch-users mailing list archive at Nabble.com.



More information about the FreeSWITCH-users mailing list