[Serusers] How to change the calling number

Mac ser at bylica.it.pl
Wed Apr 6 10:06:22 CEST 2005


Awcourse if i leave the "From" message untouched this issue doesn't 
exist, the call can be placed.
The same situation when i use:
uac_replace_from("sip:xxxxxx at 10.10.10.22") - just for testing purposes.

So maybe i should strip 49 somewhere in my configuration.
I don't know exactly?

Mac.
> OK, i have new compilation of SER (CVS HEAD) with uac module.
> Unfortunately there is another problem i cannot overcome.
> 
> What i need is to add "49" at the beggining of the calling number in 
> INVITE message. For example change xxxxx into 49xxxxx. That's all.
> I am only concerned about the traffic originated on PSTN side through 
> Cisco AS5300.
> 
> uac_replace_from("sip:49xxxxxx at 10.10.10.22") or simply replace("From: 
> <sip:", "From: <sip:49") are doing this job properly, but
> - i get no ringback tone on PSTN side, deadair, and the call is droped 
> after few secs.
> - there is a ringtone on IP side (softphone)
> 
> Do you have any ideas what could be the problem.?
> I quess that the reason might be following:
> - cisco is originating the call with calling_nr xxxxxx, thereby sending 
> INVITE with xxxxxx
> - all other signalling messages comming from IP side have got 49xxxxxx 
> calling number
> - so the caller isn't the same.
> 
> I would like to Cisco stay away from this matter, and use SER in this case.
> 
> Any help?
> 
> Thanks,
> Mac
> 
> 
> 
> 
> 
>> or use asterisk and change it there...which is what I did, but will 
>> revert back as soon as 0.10 gets stable
>>
>> Iqbal
>>
>> Mac wrote:
>>
>>> Paul,
>>>
>>> Thanks for quick response.
>>> I am going to take a look at uac module much closely.
>>>
>>> Regards,
>>> Mac.
>>>
>>>> Mac,
>>>>
>>>> There is no safe way to directly alter the From header - in fact, if
>>>> you do you will likely have problems.
>>>>
>>>> SER does have a solution to this in the unstable CVS HEAD. There is a
>>>> new module called uac which safely does this sort of thing (and more).
>>>>
>>>> Regards,
>>>> Paul
>>>>
>>>> On Apr 4, 2005 10:31 AM, Mac <ser at bylica.it.pl> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I am trying to change the calling number string on SER.
>>>>> To be more precisely: i need to have a possibility to freely change 
>>>>> the
>>>>> contents xxxxxxxx of the following line
>>>>> From: "abababa" <sip:xxxxxxxx at 10.10.10.10:29577>.
>>>>>
>>>>> Could you tell me if it is possible to obtain this goal or point me
>>>>> somewere i can get an answer.
>>>>>
>>>>> Thanks a lot,
>>>>> Mac.
>>>>>





More information about the sr-users mailing list